Fixes some warnings
This commit is contained in:
parent
fdb4a42e98
commit
bd4013e84f
@ -92,15 +92,49 @@ public class BooksWithoutBorders extends JavaPlugin {
|
||||
if (giveCommand != null) {
|
||||
giveCommand.setExecutor(new CommandGive(this));
|
||||
giveCommand.setTabCompleter(new GiveTabCompleter(this));
|
||||
} else {
|
||||
sendErrorMessage(consoleSender, "Unable to register give command");
|
||||
}
|
||||
|
||||
PluginCommand decryptCommand = this.getCommand("decrypt");
|
||||
if (decryptCommand != null) {
|
||||
decryptCommand.setExecutor(new CommandDecrypt(this));
|
||||
}
|
||||
|
||||
PluginCommand groupEncryptCommand = this.getCommand("groupencrypt");
|
||||
if (groupEncryptCommand != null) {
|
||||
groupEncryptCommand.setExecutor(new CommandGroupEncrypt(this));
|
||||
}
|
||||
|
||||
PluginCommand deleteCommand = this.getCommand("delete");
|
||||
if (deleteCommand != null) {
|
||||
deleteCommand.setExecutor(new CommandDelete(this));
|
||||
}
|
||||
|
||||
PluginCommand copyCommand = this.getCommand("copy");
|
||||
if (copyCommand != null) {
|
||||
copyCommand.setExecutor(new CommandCopy(this));
|
||||
}
|
||||
|
||||
PluginCommand unSignCommand = this.getCommand("unsign");
|
||||
if (unSignCommand != null) {
|
||||
unSignCommand.setExecutor(new CommandUnSign(this));
|
||||
}
|
||||
|
||||
PluginCommand encryptCommand = this.getCommand("encrypt");
|
||||
if (encryptCommand != null) {
|
||||
encryptCommand.setExecutor(new CommandEncrypt(this));
|
||||
}
|
||||
|
||||
PluginCommand setBookPriceCommand = this.getCommand("setbookprice");
|
||||
if (setBookPriceCommand != null) {
|
||||
setBookPriceCommand.setExecutor(new CommandSetBookPrice(this));
|
||||
}
|
||||
|
||||
PluginCommand setLoreCommand = this.getCommand("setlore");
|
||||
if (setLoreCommand != null) {
|
||||
setLoreCommand.setExecutor(new CommandSetLore());
|
||||
}
|
||||
this.getCommand("decrypt").setExecutor(new CommandDecrypt(this));
|
||||
this.getCommand("groupencrypt").setExecutor(new CommandGroupEncrypt(this));
|
||||
this.getCommand("delete").setExecutor(new CommandDelete(this));
|
||||
this.getCommand("copy").setExecutor(new CommandCopy(this));
|
||||
this.getCommand("unsign").setExecutor(new CommandUnSign(this));
|
||||
this.getCommand("encrypt").setExecutor(new CommandEncrypt(this));
|
||||
this.getCommand("setbookprice").setExecutor(new CommandSetBookPrice(this));
|
||||
this.getCommand("setlore").setExecutor(new CommandSetLore());
|
||||
}
|
||||
|
||||
protected boolean init() {
|
||||
|
Loading…
Reference in New Issue
Block a user