You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Remember to set `<EnableUIEffect>true</EnableUIEffect>` in the configuration file to activate the UI.
27
+
19
28
## Tracked Statistics
20
29
21
30
### PVP Stats
@@ -25,12 +34,12 @@ Player Stats is a plugin that tracks various player statistics and provides rank
25
34
- HS% (Headshot Percentage)
26
35
27
36
### PVE Stats
28
-
- Zombies
29
-
- Mega Zombies
30
-
- Animals
31
-
- Resources
32
-
- Harvests
33
-
- Fish
37
+
- Zombies (zombies killed)
38
+
- Mega Zombies (mega zombies killed)
39
+
- Animals (animals killed)
40
+
- Resources (resources gathered)
41
+
- Harvests (plant harvests)
42
+
- Fish (fish caught)
34
43
35
44
---
36
45
@@ -44,6 +53,45 @@ Player Stats is a plugin that tracks various player statistics and provides rank
44
53
|`PVP`| The `/stats` command displays only PVP stats, and ranking, rewards and UI are based on PVP stats |
45
54
|`PVE`| The `/stats` command displays only PVE stats, and ranking, rewards and UI are based on PVE stats |
46
55
56
+
### Automatic Bans
57
+
58
+
The Automatic Bans feature allows server owners to automatically ban players who meet suspicious statistical patterns, helping detect potential cheaters or rule violators. Bans are triggered when players die or eliminate other players, checking their overall statistics against configured thresholds.
59
+
60
+
**How it works:**
61
+
- Conditions are checked whenever a player kills someone or dies
62
+
- Multiple conditions can be combined - ALL conditions must be met to trigger a ban
63
+
- Supports custom ban reasons that will be displayed to the banned player
64
+
- Uses the player's total statistics (not session stats) for evaluation
65
+
66
+
**Available Statistics:**
67
+
-`Kills` - Total player kills
68
+
-`Deaths` - Total deaths (PVP and/or PVE based on ShowCombinedDeaths setting)
69
+
-`PVPDeaths` - Deaths caused by other players only
70
+
-`Headshots` - Total headshot kills
71
+
-`Accuracy` - Headshot percentage (0-100)
72
+
-`Playtime` - Total time played on the server (in seconds)
73
+
74
+
**Supported Comparers:**
75
+
-`greater` - Greater than the specified value
76
+
-`less` - Less than the specified value
77
+
-`equal` - Equal to the specified value
78
+
79
+
**Example Configuration:**
80
+
The default configuration automatically bans players who achieve more than 30 kills with over 80% headshot accuracy within their first hour of playtime - a pattern typically indicating cheating:
> Use this feature carefully and test your conditions thoroughly. Consider your server's gameplay style and player skill levels when setting thresholds to avoid false positives.
94
+
47
95
### Other Options
48
96
49
97
The plugin offers several additional options to customize functionality:
@@ -61,15 +109,6 @@ The plugin offers several additional options to customize functionality:
61
109
62
110
---
63
111
64
-
## Workshop (Optional)
65
-
The UI is optional and provides a visual display for PVP stats.
@@ -145,7 +194,7 @@ UI made by **💪 Soer (Unbeaten)**. He also sponsored the creation of this plug
145
194
Edit the `<Rewards>` section in the configuration file with your desired thresholds and permission groups.
146
195
147
196
4.**How can I create a custom UI?**
148
-
You can download the `statsui.unitypackage` from the [All versions](versions) page and import it into your Unity project. Then, customize the UI as needed and reupload it to the workshop.
197
+
You can download the `statsui.unitypackage` from the **All versions** page and import it into your Unity project. Then, customize the UI as needed and reupload it to the workshop. Remember in Unity do not rename any of the objects in the hierarchy, as the plugin uses the object names to find them. When reuploading, make sure to use a unique GUID and ID.
0 commit comments