This commit is contained in:
2017-05-23 23:28:29 +02:00
parent bc82cc0bb6
commit 4a51251ec8
2 changed files with 2 additions and 2 deletions
@@ -22,9 +22,9 @@ public class StaffChatCommand implements CommandExecutor
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
String noPerm = clr(config.getString("messages.prefix") + config.getString("messages.nopermission"));
if (!sender.hasPermission(plugin.commandPerm))
{
String noPerm = clr(config.getString("messages.prefix") + config.getString("messages.nopermission"));
sender.sendMessage(noPerm);
return true;
}