mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 08:25:08 +00:00
Added a null check for the very unlikely chance that the command isn't found.
This commit is contained in:
parent
008237b2a4
commit
e5da93f359
1 changed files with 5 additions and 3 deletions
|
@ -289,10 +289,12 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||
@Override public void registerCommands() {
|
||||
final BukkitCommand bukkitCommand = new BukkitCommand();
|
||||
final PluginCommand plotCommand = getCommand("plots");
|
||||
if (plotCommand != null) {
|
||||
plotCommand.setExecutor(bukkitCommand);
|
||||
plotCommand.setAliases(Arrays.asList("p", "ps", "plotme", "plot"));
|
||||
plotCommand.setTabCompleter(bukkitCommand);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public File getDirectory() {
|
||||
return getDataFolder();
|
||||
|
|
Loading…
Reference in a new issue