Skip to content

Commit

Permalink
chore: switch to default true values
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Apr 2, 2023
1 parent 5a9c6e4 commit 09c9afb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 15 deletions.
26 changes: 13 additions & 13 deletions GamingAPIPlugins/plugins/GamingAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,31 @@ private void Init()
public class Configuration
{
[JsonProperty(PropertyName = "If true, when a player writes in the chat the event will be saved")]
public bool onChat = false;
public bool onChat = true;
[JsonProperty(PropertyName = "If true, when a player farms a resource the event will be saved")]
public bool onResourceGathered = false;
public bool onResourceGathered = true;
[JsonProperty(PropertyName = "If true, when a player respawns the event will be saved")]
public bool onRespawn = false;
public bool onRespawn = true;
[JsonProperty(PropertyName = "If true, when a player disconnects the event will be saved")]
public bool onPlayerDisconnected = false;
public bool onPlayerDisconnected = true;
[JsonProperty(PropertyName = "If true, when a player connects the event will be saved")]
public bool onPlayerConnected = false;
public bool onPlayerConnected = true;
[JsonProperty(PropertyName = "If true, when the server wipes the event will be saved")]
public bool onWipe = false;
public bool onWipe = true;
[JsonProperty(PropertyName = "If true, when a player crafts an item the event will be saved")]
public bool onCrafted = false;
public bool onCrafted = true;
[JsonProperty(PropertyName = "If true, when a player is banned the event will be saved")]
public bool onBanned = false;
public bool onBanned = true;
[JsonProperty(PropertyName = "If true, when a player is reported the event will be saved")]
public bool onReportedd = false;
public bool onReportedd = true;
[JsonProperty(PropertyName = "If true, when a server command is run the event will be saved")]
public bool onServerCommand = false;
public bool onServerCommand = true;
[JsonProperty(PropertyName = "If true, when a player hits another player the event will be saved")]
public bool onPlayerHit = false;
public bool onPlayerHit = true;
[JsonProperty(PropertyName = "If true, when a player picks up an item the event will be saved")]
public bool onItemPickup = false;
public bool onItemPickup = true;
[JsonProperty(PropertyName = "If true, when a player loots an item the event will be saved")]
public bool onitemLooted = false;
public bool onitemLooted = true;

public static Configuration DefaultConfig()
{
Expand Down
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# rust-server-plugin
The rust server plugin utilizing Umod for for sharing events.
# UMod GamingAPI Plugin
The rust server plugin utilizing UMod for GamingAPI.

## Configuration

The plugin is setup for you to control which events you want your server to save, certain services can require you to enable certain ones in order to function, but that is up to the individual service.

```json
{
"If true, when a player writes in the chat the event will be saved": true,
"If true, when a player farms a resource the event will be saved": true,
"If true, when a player respawns the event will be saved": true,
"If true, when a player disconnects the event will be saved": true,
"If true, when a player connects the event will be saved": true,
"If true, when the server wipes the event will be saved": true,
"If true, when a player crafts an item the event will be saved": true,
"If true, when a player is banned the event will be saved": true,
"If true, when a player is reported the event will be saved": true,
"If true, when a server command is run the event will be saved": true,
"If true, when a player hits another player the event will be saved": true,
"If true, when a player picks up an item the event will be saved": true,
"If true, when a player loots an item the event will be saved": true
}
```

0 comments on commit 09c9afb

Please sign in to comment.