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:
DroppingAnvil 2019-11-01 15:17:24 -05:00
parent 35dc4bb481
commit 73ba6fb608
3 changed files with 6 additions and 1 deletions

View File

@ -114,6 +114,7 @@ public class Conf {
public static boolean logMoneyTransactions = true; public static boolean logMoneyTransactions = true;
public static boolean logPlayerCommands = true; public static boolean logPlayerCommands = true;
// prevent some potential exploits // prevent some potential exploits
public static boolean preventCreeperGlitch = true;
public static boolean handleExploitObsidianGenerators = true; public static boolean handleExploitObsidianGenerators = true;
public static boolean handleExploitEnderPearlClipping = true; public static boolean handleExploitEnderPearlClipping = true;
public static boolean handleExploitInteractionSpam = true; public static boolean handleExploitInteractionSpam = true;

View File

@ -34,6 +34,9 @@ public class FactionsEntityListener implements Listener {
@EventHandler @EventHandler
public void onCreeperGlitch(EntityDamageEvent e) { public void onCreeperGlitch(EntityDamageEvent e) {
if (!Conf.preventCreeperGlitch) {
return;
}
if (!e.getEntity().getType().equals(EntityType.CREEPER)) { if (!e.getEntity().getType().equals(EntityType.CREEPER)) {
return; return;
} }

View File

@ -66,12 +66,13 @@ permissions:
description: Can do all but create factions. description: Can do all but create factions.
children: children:
factions.missions: true factions.missions: true
factions.tntfill: true
factions.shop: true factions.shop: true
factions.permissions: true factions.permissions: true
factions.setdiscord: true factions.setdiscord: true
factions.discord: true factions.discord: true
factions.paypal: true factions.paypal: true
factions.paypalset: true factions.setpaypal: true
factions.admin: true factions.admin: true
factions.autoclaim: true factions.autoclaim: true
factions.promote: true factions.promote: true