From a4415fa7d7961aae63af944cd7b259dda739039e Mon Sep 17 00:00:00 2001 From: Flavius12 Date: Mon, 29 Dec 2014 12:19:16 +0100 Subject: [PATCH] Version 1.2 --- src/ServerKits/Commands/Commands.php | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/ServerKits/Commands/Commands.php b/src/ServerKits/Commands/Commands.php index 374f195..5f41b57 100644 --- a/src/ServerKits/Commands/Commands.php +++ b/src/ServerKits/Commands/Commands.php @@ -1,15 +1,15 @@ getName()); switch($fcmd){ - case "kitpro": + case "serverkits": if(isset($args[0])){ $args[0] = strtolower($args[0]); if($args[0]=="help"){ - if($sender->hasPermission("kitpro.commands.help")){ + if($sender->hasPermission("serverkits.commands.help")){ $sender->sendMessage($this->plugin->translateColors("&", "&7<<>> &cAvailable Commands &7<<>>")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro info &7<>&a Show info about this plugin")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro help &7<>&a Show help about this plugin")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro reload &7<>&a Reload the config")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits info &7<>&a Show info about this plugin")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits help &7<>&a Show help about this plugin")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits reload &7<>&a Reload the config")); $sender->sendMessage($this->plugin->translateColors("&", "&c/kit &7<>&a Get a kit")); break; }else{ @@ -47,8 +47,8 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar break; } }elseif($args[0]=="info"){ - if($sender->hasPermission("kitpro.commands.info")){ - $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&7KitPro &av" . Main::VERSION . " &7developed by&a " . Main::PRODUCER)); + if($sender->hasPermission("serverkits.commands.info")){ + $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&7ServerKits &av" . Main::VERSION . " &7developed by&a " . Main::PRODUCER)); $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&7Website &a" . Main::MAIN_WEBSITE)); break; }else{ @@ -56,7 +56,7 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar break; } }elseif($args[0]=="reload"){ - if($sender->hasPermission("kitpro.commands.reload")){ + if($sender->hasPermission("serverkits.commands.reload")){ $this->plugin->reloadConfig(); $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&aConfiguration Reloaded.")); break; @@ -65,8 +65,8 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar break; } }else{ - if($sender->hasPermission("kitpro")){ - $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&cSubcommand &a" . $args[0] . " &cnot found. Use &a/kitpro help &cto show available commands")); + if($sender->hasPermission("serverkits")){ + $sender->sendMessage($this->plugin->translateColors("&", Main::PREFIX . "&cSubcommand &a" . $args[0] . " &cnot found. Use &a/serverkits help &cto show available commands")); break; }else{ $sender->sendMessage($this->plugin->translateColors("&", "&cYou don't have permissions to use this command")); @@ -74,11 +74,11 @@ public function onCommand(CommandSender $sender, Command $cmd, $label, array $ar } } }else{ - if($sender->hasPermission("kitpro.commands.help")){ + if($sender->hasPermission("serverkits.commands.help")){ $sender->sendMessage($this->plugin->translateColors("&", "&7<<>> &cAvailable Commands &7<<>>")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro info &7<>&a Show info about this plugin")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro help &7<>&a Show help about this plugin")); - $sender->sendMessage($this->plugin->translateColors("&", "&c/kitpro reload &7<>&a Reload the config")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits info &7<>&a Show info about this plugin")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits help &7<>&a Show help about this plugin")); + $sender->sendMessage($this->plugin->translateColors("&", "&c/serverkits reload &7<>&a Reload the config")); $sender->sendMessage($this->plugin->translateColors("&", "&c/kit &7<>&a Get a kit")); break; }else{