Various bug fixes. Thanks to Akraos for helping debug! If you would like to regenerate your conf.json it adds an option to turn off the creeper glitch prevention.
Signed-off-by: DroppingAnvil <dr0pping.4nvi1@gmail.com>
This commit is contained in:
parent
35dc4bb481
commit
73ba6fb608
@ -114,6 +114,7 @@ public class Conf {
|
||||
public static boolean logMoneyTransactions = true;
|
||||
public static boolean logPlayerCommands = true;
|
||||
// prevent some potential exploits
|
||||
public static boolean preventCreeperGlitch = true;
|
||||
public static boolean handleExploitObsidianGenerators = true;
|
||||
public static boolean handleExploitEnderPearlClipping = true;
|
||||
public static boolean handleExploitInteractionSpam = true;
|
||||
|
@ -34,6 +34,9 @@ public class FactionsEntityListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onCreeperGlitch(EntityDamageEvent e) {
|
||||
if (!Conf.preventCreeperGlitch) {
|
||||
return;
|
||||
}
|
||||
if (!e.getEntity().getType().equals(EntityType.CREEPER)) {
|
||||
return;
|
||||
}
|
||||
|
@ -66,12 +66,13 @@ permissions:
|
||||
description: Can do all but create factions.
|
||||
children:
|
||||
factions.missions: true
|
||||
factions.tntfill: true
|
||||
factions.shop: true
|
||||
factions.permissions: true
|
||||
factions.setdiscord: true
|
||||
factions.discord: true
|
||||
factions.paypal: true
|
||||
factions.paypalset: true
|
||||
factions.setpaypal: true
|
||||
factions.admin: true
|
||||
factions.autoclaim: true
|
||||
factions.promote: true
|
||||
|
Loading…
Reference in New Issue
Block a user