mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-11 01:38:07 +02:00
Fixed some more permissions related things
This commit is contained in:
parent
890bac0916
commit
8c633adb8e
@ -11,7 +11,6 @@ public class LibsDisguisesCommand implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||||
if (!sender.hasPermission("libsdisguises.reload")) {
|
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
sender.sendMessage(ChatColor.DARK_GREEN
|
sender.sendMessage(ChatColor.DARK_GREEN
|
||||||
+ "This server is running "
|
+ "This server is running "
|
||||||
@ -20,15 +19,18 @@ public class LibsDisguisesCommand implements CommandExecutor {
|
|||||||
+ " by libraryaddict, maintained by NavidK0.\n"
|
+ " by libraryaddict, maintained by NavidK0.\n"
|
||||||
+ "Use /libsdisguises reload to reload the config. All disguises will be blown by doing this.");
|
+ "Use /libsdisguises reload to reload the config. All disguises will be blown by doing this.");
|
||||||
} else if (args.length > 0) {
|
} else if (args.length > 0) {
|
||||||
if (args[0].equalsIgnoreCase("reload")) {
|
if (!sender.hasPermission("libsdisguises.reload")) {
|
||||||
LibsDisguises.instance.reload();
|
if (args[0].equalsIgnoreCase("reload")) {
|
||||||
sender.sendMessage(ChatColor.GREEN + "[LibsDisguises] Reloaded config.");
|
LibsDisguises.instance.reload();
|
||||||
return true;
|
sender.sendMessage(ChatColor.GREEN + "[LibsDisguises] Reloaded config.");
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
sender.sendMessage(ChatColor.RED + "[LibsDisguises] That command doesn't exist!");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(ChatColor.RED + "[LibsDisguises] That command doesn't exist!");
|
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user