mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 22:15:34 +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
@@ -62,6 +62,10 @@ tasks.named<Copy>("processResources") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.jar.configure {
|
||||||
|
archiveClassifier.set("no-libs")
|
||||||
|
}
|
||||||
|
|
||||||
tasks.named("build").configure {
|
tasks.named("build").configure {
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
}
|
}
|
||||||
@@ -59,6 +59,6 @@ public class Settings {
|
|||||||
fixAttackSpeed = customConfig.get("fix-attackspeed", Boolean.class, false);
|
fixAttackSpeed = customConfig.get("fix-attackspeed", Boolean.class, false);
|
||||||
preventDragonEggTeleport = customConfig.get("prevent-dragon-egg-teleport", Boolean.class, true);
|
preventDragonEggTeleport = customConfig.get("prevent-dragon-egg-teleport", Boolean.class, true);
|
||||||
sendErrorMessages = customConfig.get("send-error-messages", 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)
|
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)
|
||||||
&& event.getClickedBlock().getType().equals(Material.DRAGON_EGG)
|
&& 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);
|
event.setCancelled(true);
|
||||||
if (Settings.sendDebugMessages) {
|
if (Settings.sendDebugMessages) {
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in new issue
Block a user