예제 #1
0
 public bool OnCommand(CommandSender sender, Command command, string[] args)
 {
     if(sender.HasPermission("yurikocs.command.exit")){
         sender.SendMessage("Debug");
         return true;
     }else{
         sender.SendMessage("§cYou don't have permissions to execute this command");
         return false;
     }
 }
예제 #2
0
 public bool OnCommand(CommandSender sender, Command command, string[] args)
 {
     sender.SendMessage(TextFormat.translateColors('&',"&6\nYuriko-CS: A fast and full-featured Minecraft: Pocket Edition server software written in C#\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n# Links\n[Website](http://devs4pm.eu)\n[Forums](http://devs4pm.eu/forums)\n[Jenkins](http://devs4pm.eu)\n[Wiki and API Docs](https://github.com/ItalianDevs4PM/Yuriko-CS/wiki/)\n# Downloads\nStill In Development\n# Contributions\nItalianDevs4PM Team\n# Third-Party Libraries\nStill In Development\n\nMade in Italy by ItalianDevs4PM"));
         return true;
 }
예제 #3
0
 public static bool CommandExists(Command command)
 {
     return registeredcmds.ContainsKey(command.GetCommandName());
 }
예제 #4
0
 public static bool UnregisterCommand(Command command)
 {
     if(CommandExists(command)){
         registeredcmds.Remove(command.GetCommandName());
         return true;
     }
     return false;
 }
예제 #5
0
 public static bool RegisterCommand(Command command)
 {
     if(CommandExists(command)){
         return false;
     }
     registeredcmds.Add(command.GetCommandName(), command);
     return true;
 }
예제 #6
0
 public static bool OverrideCommand(Command command)
 {
     if(CommandExists(command)){
         registeredcmds[command.GetCommandName()] = command;
         return true;
     }
     return false;
 }
예제 #7
0
 public bool OnCommand(CommandSender sender, Command command, string[] args)
 {
     sender.SendMessage(TextFormat.translateColors('&',"&6HELP\n"));
         return true;
 }