mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-01 22:14:56 +00:00
renamed default no library jar, improved detection for DragonEgg teleporting, changed default config value for debugging to false.
This commit is contained in:
1 parent
fc8b210ab8
commit
a6ac5962d5
3 files changed
+10
-2
No files matched your search
@@ -59,6 +59,6 @@ public class Settings {
|
||||
fixAttackSpeed = customConfig.get("fix-attackspeed", Boolean.class, false);
|
||||
preventDragonEggTeleport = customConfig.get("prevent-dragon-egg-teleport", Boolean.class, true);
|
||||
sendErrorMessages = customConfig.get("send-error-messages", Boolean.class, true);
|
||||
sendDebugMessages = customConfig.get("send-debug-messages", Boolean.class, true);
|
||||
sendDebugMessages = customConfig.get("send-debug-messages", Boolean.class, false);
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,11 @@ public class PlayerInteractListener implements Listener {
|
||||
}
|
||||
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)
|
||||
&& event.getClickedBlock().getType().equals(Material.DRAGON_EGG)
|
||||
&& Settings.preventDragonEggTeleport) {
|
||||
&& Settings.preventDragonEggTeleport
|
||||
&& !(event.getPlayer().isSneaking()
|
||||
&& (!event.getPlayer().getInventory().getItemInOffHand().getType().isAir()
|
||||
|| !event.getPlayer().getInventory().getItemInMainHand().getType().isAir()))
|
||||
) {
|
||||
event.setCancelled(true);
|
||||
if (Settings.sendDebugMessages) {
|
||||
logger.info(
|
||||
|
||||
Reference in new issue
Block a user