Implement debug listener and optimize permission handling (#9)

* Improve permission handling and implement debug listener

* Fix custom no-permission message

* Fix ender dragon egg teleport bypass when sneaking
This commit is contained in:
NotMyFault authored and GitHub committed 2020-09-10 21:40:02 +02:00
1 parent 4abd7644aa
commit 17041d4c47
32 files changed
+97 -56

No files matched your search

@@ -38,7 +38,7 @@ public class NoClipCommand implements ICommand {
public void execute(Player player, String[] args) {
if (!player.hasPermission("builders.util.noclip")) {
if (Settings.sendErrorMessages) {
player.sendMessage(Main.MSG_ERROR + "You do not have access to this command.");
player.sendMessage(Main.MSG_NO_PERMISSION + "builders.util.noclip");
}
return;
}