Package org.spout.api.command.filter

Examples of org.spout.api.command.filter.PlayerFilter


          input.bind(new Binding("quickbar_" + i, Keyboard.valueOf("KEY_" + i)));
        }

        CommandManager cm = Spout.getCommandManager();
        final QuickbarCommandExecutor exe = new QuickbarCommandExecutor();
        final PlayerFilter filter = new PlayerFilter();
        cm.getCommand("quickbar_left").setHelp("Changes quickbar slot!").setExecutor(exe).addFilter(filter);
        cm.getCommand("quickbar_right").setHelp("Changes quickbar slot!").setExecutor(exe).addFilter(filter);
        for (int i = 1; i < 10; i++) {
          cm.getCommand("quickbar_" + i).setHelp("Changes quickbar slot!").setExecutor(exe).addFilter(filter);
        }
View Full Code Here

TOP

Related Classes of org.spout.api.command.filter.PlayerFilter

Copyright © 2018 www.massapicom. 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.