Examples of CommandManager


Examples of frontend.alphaspawn.tools.command.CommandManager

  /**
   * Removes the command used by this plugin.
   */
  protected void removeCommand () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();
   
    // Check if the plugin command can be remove
    if ( this.objPluginCmd != null ) {
      // Remove the "plugin" command
      cmdMgr.removeCommand( "!plugin", this.objPluginCmd );
      this.objPluginCmd = null;
    }
  }
View Full Code Here

Examples of net.aufdemrand.denizen.utilities.command.CommandManager

        try {
            // Create the dNPC Registry
            dNPCRegistry = new dNPCRegistry(this);

            // Create our CommandManager to handle '/denizen' commands
            commandManager = new CommandManager();
            commandManager.setInjector(new Injector(this));
            commandManager.register(DenizenCommandHandler.class);

            // If Citizens is enabled, let it handle '/npc' commands
            if (Depends.citizens != null) {
View Full Code Here

Examples of net.lightstone.cmd.CommandManager

    String text = message.getMessage();
    if (text.length() > 100) {
      session.disconnect("Chat message too long.");
    } else if (text.startsWith("/")) {
      CommandManager manager = session.getServer().getCommandManager();
      manager.execute(player, text);
    } else {
      player.getWorld().broadcastMessage("<" + player.getName() + "> " + text);
    }
  }
View Full Code Here

Examples of net.sacredlabyrinth.Phaed.TelePlusPlus.managers.CommandManager

        permissionsManager = new PermissionsManager(this);
        settingsManager = new SettingsManager(this);
        requestsManager = new RequestsManager(this);
        teleportManager = new TeleportManager(this);
        toggleManager = new ToggleManager(this);
        commandManager = new CommandManager(this);
        glassedManager = new GlassedManager(this);
        helpManager = new HelpManager(this);
        itemManager = new ItemManager(this);
        moverManager = new MoverManager();
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

           
            try
            {
                DefaultContext setup = (DefaultContext)this.context;
                threads = new TPCThreadManager();
                CommandManager commands = new CommandManager();
               
                Parameters params = new Parameters();
                params.setParameter("threads-per-processor", "1");
                params.setParameter("sleep-time", "100");
                params.setParameter("block-timeout", "1000");
                params.setParameter("force-shutdown", "false");
                params.makeReadOnly();
               
                ContainerUtil.enableLogging(threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(threads, params);
                ContainerUtil.initialize(threads);
               
                threads.register(commands);
               
                setup.put(Queue.ROLE, commands.getCommandSink());
               
                setup.makeReadOnly();
            }
            catch (Exception e)
            {
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

               
                ContainerUtil.enableLogging(this.threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(this.threads, params);
                ContainerUtil.initialize(this.threads);
               
                this.commands = new CommandManager();
                ContainerUtil.enableLogging(this.commands, getLogger().getChildLogger("thread.manager"));
                this.threads.register(this.commands);
               
                setup.put(Queue.ROLE, this.commands.getCommandSink());
               
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

               
                ContainerUtil.enableLogging(this.threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(this.threads, params);
                ContainerUtil.initialize(this.threads);
               
                this.commands = new CommandManager();
                ContainerUtil.enableLogging(this.commands, getLogger().getChildLogger("thread.manager"));
                this.threads.register(this.commands);
               
                setup.put(Queue.ROLE, this.commands.getCommandSink());
               
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

           
            try
            {
                DefaultContext setup = (DefaultContext)this.context;
                threads = new TPCThreadManager();
                CommandManager commands = new CommandManager();
               
                Parameters params = new Parameters();
                params.setParameter("threads-per-processor", "1");
                params.setParameter("sleep-time", "100");
                params.setParameter("block-timeout", "1000");
                params.setParameter("force-shutdown", "false");
                params.makeReadOnly();
               
                ContainerUtil.enableLogging(threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(threads, params);
                ContainerUtil.initialize(threads);
               
                threads.register(commands);
               
                setup.put(Queue.ROLE, commands.getCommandSink());
               
                setup.makeReadOnly();
            }
            catch (Exception e)
            {
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

               
                ContainerUtil.enableLogging(this.threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(this.threads, params);
                ContainerUtil.initialize(this.threads);
               
                this.commands = new CommandManager();
                ContainerUtil.enableLogging(this.commands, getLogger().getChildLogger("thread.manager"));
                this.threads.register(this.commands);
               
                setup.put(Queue.ROLE, this.commands.getCommandSink());
               
View Full Code Here

Examples of org.apache.excalibur.event.command.CommandManager

            this.context = new ComponentContext(context);
           
            try {
                DefaultContext setup = (DefaultContext)this.context;
                threads = new TPCThreadManager();
                CommandManager commands = new CommandManager();
               
                Parameters params = new Parameters();
                params.setParameter("threads-per-processor", "1");
                params.setParameter("sleep-time", "100");
                params.setParameter("block-timeout", "1000");
                params.setParameter("force-shutdown", "false");
                params.makeReadOnly();
               
                ContainerUtil.enableLogging(threads, getLogger().getChildLogger("thread.manager"));
                ContainerUtil.parameterize(threads, params);
                ContainerUtil.initialize(threads);
               
                threads.register(commands);
               
                setup.put(Queue.ROLE, commands.getCommandSink());
               
                setup.makeReadOnly();
            } catch (Exception e) {
                getLogger().error("Could not set up the Command Manager", e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.