mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 05:16:55 +00:00
fixed wrong message getting displayed
This commit is contained in:
@@ -12,7 +12,6 @@ public class MainCommand implements TabExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
|
||||
if (sender.hasPermission("togglepvp.command")) {
|
||||
if (args.length >= 1) {
|
||||
switch (args[0].toLowerCase()) {
|
||||
@@ -41,10 +40,8 @@ public class MainCommand implements TabExecutor {
|
||||
HelpCommand.help(sender, args);
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(PluginMessages.parseMessage(TogglePvP.getPlugin().getConfigCache().getNo_such_command()));
|
||||
sender.sendMessage(PluginMessages.parseMessage(TogglePvP.getPlugin().getConfigCache().getNo_permission()));
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -84,7 +81,6 @@ public class MainCommand implements TabExecutor {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return commands;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user