mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fixes #910
This commit is contained in:
parent
8906577699
commit
43b7a7aba8
@ -299,9 +299,6 @@ public class MainCommand extends CommandManager<PlotPlayer> {
|
||||
displayHelp(player, category, help_index, cmd);
|
||||
return true;
|
||||
}
|
||||
if (args[0].contains(":")) {
|
||||
args[0] = args[0].replaceFirst(":", " ");
|
||||
}
|
||||
String fullCmd = StringMan.join(args, " ");
|
||||
getInstance().handle(player, cmd + " " + fullCmd);
|
||||
// Restore location
|
||||
@ -453,10 +450,6 @@ public class MainCommand extends CommandManager<PlotPlayer> {
|
||||
final boolean result = cmd.onCommand(plr, args);
|
||||
if (!result) {
|
||||
cmd.getUsage();
|
||||
// Unecessary!
|
||||
// if (usage != null && !usage.isEmpty()) {
|
||||
// MainUtil.sendMessage(plr, usage);
|
||||
// }
|
||||
return CommandHandlingOutput.WRONG_USAGE;
|
||||
}
|
||||
} catch (final Throwable t) {
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user