mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-02 14:38:47 +00:00
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:
1 parent
4abd7644aa
commit
17041d4c47
32 files changed
+97
-56
No files matched your search
@@ -35,7 +35,7 @@ public class CopyAliasCommand implements ICommand {
|
||||
public void execute(Player player, String[] args) {
|
||||
if (!player.hasPermission("builders.util.aliases")) {
|
||||
if (Settings.sendErrorMessages) {
|
||||
player.sendMessage(Main.MSG_ERROR + "You do not have access to this command.");
|
||||
player.sendMessage(Main.MSG_NO_PERMISSION + "builders.util.aliases");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user