Anti-Exploit config pt 1

This commit is contained in:
nossr50 2019-03-14 16:47:02 -07:00
parent f5c1e0952b
commit d272d60112
3 changed files with 27 additions and 1 deletions

View File

@ -15,13 +15,19 @@ Version 2.2.0
All config nodes now include a comment with the default value of the node to use as reference All config nodes now include a comment with the default value of the node to use as reference
Expanded settings relating to purging users who have not leveled or users who had not logged in for many months Expanded settings relating to purging users who have not leveled or users who had not logged in for many months
NOTE: Not every config key that was renamed will be listed here
Fixed a bug where players who started at level 1 would not be purged from the DB for being "powerless" Fixed a bug where players who started at level 1 would not be purged from the DB for being "powerless"
Settings related to Player Leveling are now found in "player_leveling.conf" Settings related to Player Leveling are now found in "player_leveling.conf"
Player Leveling's "TruncateSkills" renamed -> "Reduce-Player-Skills-Above-Cap" Player Leveling's "TruncateSkills" renamed -> "Reduce-Player-Skills-Above-Cap"
Player Leveling's "StartingLevel" renamed -> "Player-Starting-Level" Player Leveling's "StartingLevel" renamed -> "Player-Starting-Level"
Retro mode setting's "Enable" renamed -> "Use-Retro-Mode"
Added new toggles for enabling level caps (previously this was done by setting the value above 0) Added new toggles for enabling level caps (previously this was done by setting the value above 0)
World Blacklist settings can now be found in "world_blacklist.conf"
World Blacklist now includes examples
Scoreboard settings can now be found in "scoreboard.conf" Scoreboard settings can now be found in "scoreboard.conf"
Scoreboard's "Allow_Keep" setting was removed because it was doing something permissions should be doing instead, and I don't see why such a thing even needs a permission! Scoreboard's "Allow_Keep" setting was removed because it was doing something permissions should be doing instead, and I don't see why such a thing even needs a permission!
Scoreboard's "Power_Level_Tags" renamed -> "Display-Power-Levels-Below-Player-Names" Scoreboard's "Power_Level_Tags" renamed -> "Display-Power-Levels-Below-Player-Names"

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.28</version> <version>2.2.0-SNAPSHOT</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -1,12 +1,32 @@
package com.gmail.nossr50.config.hocon.antiexploit; package com.gmail.nossr50.config.hocon.antiexploit;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable @ConfigSerializable
public class AntiExploit { public class AntiExploit {
private static final boolean ENDERMEN_ENDERMITE_DEFAULT = true;
private static final boolean PISTONS_MARK_BLOCKS_DEFAULT = true;
public static final boolean SPAWNED_MOBS_DEFAULT = true;
/* /*
* CONFIG NODES * CONFIG NODES
*/ */
@Setting(value = "Endermen-Endermite-Fix",
comment = "Removes XP from Endermen that target endermite, this is a common exploit in The End because of how rapidly they can spawn." +
"\nIt is recommended that you leave this on as it allows players to easily gain massive amounts of combat XP" +
"\nDefault value: "+ENDERMEN_ENDERMITE_DEFAULT)
private boolean endermenEndermiteFix = ENDERMEN_ENDERMITE_DEFAULT;
@Setting(value = "Pistons-Mark-Blocks-As-Unnatural",
comment = "Unnatural blocks give no XP." +
"This helps prevent complex automated stone farms that enable auto clickers to gain XP passively.")
private boolean pistonsMarkBlocksUnnatural = PISTONS_MARK_BLOCKS_DEFAULT;
@Setting(value = "Spawned-Mobs-Give-No-XP",
comment = "Spawned mobs will not give players combat XP." +
"\nThis includes mobs spawned from a nether portal, mob spawner, or eggs." +
"\nThis will not include mobs spawned from commands, typically.")
private boolean spawnedMobsGiveNoXP = SPAWNED_MOBS_DEFAULT;
} }