Android Open Source - MConsole Command Set






From Project

Back to project page MConsole.

License

The source code is released under:

MIT License

If you think the Android project MConsole listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package pl.skifo.mconsole;
/*www. j av a 2  s.com*/
public class CommandSet {
    
    public static enum SupportedSet {
        STANDARD,
        ESSENTIALS
    };
    
    public static final int TIME       = 0; 
    public static final int KICK       = 1;
    public static final int OP         = 2;
    public static final int DEOP       = 3;
    public static final int PARDON     = 4;
    public static final int STOP       = 5;
    public static final int TP         = 6;
    public static final int BAN        = 7;
    public static final int GAMEMODE   = 8;
    public static final int SAY        = 9;
    public static final int TELL       = 10;
    public static final int LIST       = 11;
    public static final int DIFFICULTY = 12;
    public static final int BANLIST    = 13;
    public static final int SAVE_ALL   = 14;
    public static final int WEATHER    = 15;
    
    private static final String[] standardSet = {"time ", "kick ", "op ", "deop ",
                                                 "pardon ", "stop", "tp ", "ban ",
                                                 "gamemode ", "say ", "tell ", "list",
                                                 "difficulty ", "banlist", "save-all", "weather "};
    
    private static final String[] essentialsSet = {"minecraft:time ", "minecraft:kick ", "minecraft:op ", "minecraft:deop ",
                                                   "minecraft:pardon ", "stop", "minecraft:tp ", "minecraft:ban ",
                                                   "minecraft:gamemode ", "minecraft:say ", "minecraft:tell ", "minecraft:list",
                                                   "minecraft:difficulty ", "minecraft:banlist", "save-all", "minecraft:weather "};
    
    
    private static String[] currSet = standardSet;
    
    public static void setCurrentSet(SupportedSet set) {
        if (set == SupportedSet.ESSENTIALS)
            currSet = essentialsSet;
        if (set == SupportedSet.STANDARD)
            currSet = standardSet;
    }
    

    public static final String getCommand(int idx) {
        return currSet[idx];
    }
    
}




Java Source Code List

pl.skifo.mconsole.AttributedBlock.java
pl.skifo.mconsole.AttributedLine.java
pl.skifo.mconsole.AttributedString.java
pl.skifo.mconsole.BanlistDialog.java
pl.skifo.mconsole.CommandPrompt.java
pl.skifo.mconsole.CommandResponseEvaluator.java
pl.skifo.mconsole.CommandSet.java
pl.skifo.mconsole.ConfirmDialog.java
pl.skifo.mconsole.ConsoleOutputImpl.java
pl.skifo.mconsole.ConsoleOutput.java
pl.skifo.mconsole.MConsoleActivity.java
pl.skifo.mconsole.MinecraftColorScheme.java
pl.skifo.mconsole.PlayerActionTp.java
pl.skifo.mconsole.PlayerAdminBan.java
pl.skifo.mconsole.PlayerAdminMode.java
pl.skifo.mconsole.PlayerListAdapter.java
pl.skifo.mconsole.PlayersFragment.java
pl.skifo.mconsole.ResponseEvaluator.java
pl.skifo.mconsole.ResponseReceiver.java
pl.skifo.mconsole.ResponseToastGenerator.java
pl.skifo.mconsole.SayDialog.java
pl.skifo.mconsole.ServerConnector.java
pl.skifo.mconsole.ServerConsoleFragment.java
pl.skifo.mconsole.ServerConsole.java
pl.skifo.mconsole.ServerFragment.java
pl.skifo.mconsole.ServerInfo.java
pl.skifo.mconsole.ServerResponse.java
pl.skifo.mconsole.SimpleToastResponseReceiver.java
pl.skifo.mconsole.TabsPagerAdapter.java
pl.skifo.mconsole.TellDialog.java
pl.skifo.mconsole.TimeSetDialog.java
pl.skifo.mconsole.UserActionDialog.java
pl.skifo.mconsole.UserAdminDialog.java