mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +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);
|
displayHelp(player, category, help_index, cmd);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (args[0].contains(":")) {
|
|
||||||
args[0] = args[0].replaceFirst(":", " ");
|
|
||||||
}
|
|
||||||
String fullCmd = StringMan.join(args, " ");
|
String fullCmd = StringMan.join(args, " ");
|
||||||
getInstance().handle(player, cmd + " " + fullCmd);
|
getInstance().handle(player, cmd + " " + fullCmd);
|
||||||
// Restore location
|
// Restore location
|
||||||
@ -453,10 +450,6 @@ public class MainCommand extends CommandManager<PlotPlayer> {
|
|||||||
final boolean result = cmd.onCommand(plr, args);
|
final boolean result = cmd.onCommand(plr, args);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
cmd.getUsage();
|
cmd.getUsage();
|
||||||
// Unecessary!
|
|
||||||
// if (usage != null && !usage.isEmpty()) {
|
|
||||||
// MainUtil.sendMessage(plr, usage);
|
|
||||||
// }
|
|
||||||
return CommandHandlingOutput.WRONG_USAGE;
|
return CommandHandlingOutput.WRONG_USAGE;
|
||||||
}
|
}
|
||||||
} catch (final Throwable t) {
|
} catch (final Throwable t) {
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user