mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Fix #155, update README.md
This commit is contained in:
1 parent
79e913c46c
commit
a3ae0ab967
2 files changed
+6
-4
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
AntiCheatReloaded   
|
AntiCheatReloaded    
|
||||||
=============
|
=============
|
||||||
AntiCheatReloaded helps server admins combat the use of hacked clients and spambots. It analyses the behavior of players and can prevent malicious gameplay. The plugin offers a lot of customizability and can be connected across multiple servers in case it is used in a server network context. AntiCheatReloaded is based on gravitylow's AntiCheat and has been around since 2012.
|
AntiCheatReloaded helps server admins combat the use of hacked clients and spambots. It analyses the behavior of players and can prevent malicious gameplay. The plugin offers a lot of customizability and can be connected across multiple servers in case it is used in a server network context. AntiCheatReloaded is based on gravitylow's AntiCheat and has been around since 2012.
|
||||||
|
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ public final class AntiCheatReloaded extends JavaPlugin {
|
|||||||
plugin = this;
|
plugin = this;
|
||||||
manager = new AntiCheatManager(this, getLogger());
|
manager = new AntiCheatManager(this, getLogger());
|
||||||
|
|
||||||
// Base threads on available cores, limit of 4
|
// Base threads on available cores, lower limit of 1 and upper limit of 4
|
||||||
final int threads = Math.min(Runtime.getRuntime().availableProcessors() / 4, 4);
|
final int threads = Math.max(Math.min(Runtime.getRuntime().availableProcessors() / 4, 4), 1);
|
||||||
executorService = Executors.newFixedThreadPool(threads);
|
executorService = Executors.newFixedThreadPool(threads);
|
||||||
Bukkit.getConsoleSender().sendMessage(PREFIX + ChatColor.GRAY + "Pool size is " + threads + " threads");
|
Bukkit.getConsoleSender().sendMessage(PREFIX + ChatColor.GRAY + "Pool size is " + threads + " threads");
|
||||||
|
|
||||||
@@ -182,7 +182,9 @@ public final class AntiCheatReloaded extends JavaPlugin {
|
|||||||
|
|
||||||
// Save user levels
|
// Save user levels
|
||||||
verboseLog("Saving user levels...");
|
verboseLog("Saving user levels...");
|
||||||
config.getLevels().saveLevelsFromUsers(manager.getUserManager().getUsers());
|
if (config != null) {
|
||||||
|
config.getLevels().saveLevelsFromUsers(manager.getUserManager().getUsers());
|
||||||
|
}
|
||||||
|
|
||||||
AntiCheatManager.close();
|
AntiCheatManager.close();
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|||||||
Reference in new issue
Block a user