CobbleConsole icon

CobbleConsole -----

A bash-eques virtual console with a easy to learn API



CobbleConsole is an alternative to commands, made more for fun and novelty.

to run a command, follow the example below
Code (Text):
$ clear
The CobbleConsole API is made to be as simple as possible for anyone.

Below is an example

Code (Java):
// for example, here's the code to the built-in clear command
public class ClearCommand extends ConsoleCommand {
    @Override
    public String getIdentifier ( ) {
        return "clear" ;
    }

    @Override
    public String getDescription ( ) {
        return "clears the \"console\"" ;
    }

    @Override
    public void execute (Player p, String [ ] args ) {

        for ( String arg : args ) {
            if ( new CmdTokenParser (args ). containsToken ( new String [ ] { "-a", "-all" } ) ) {
                for (Player pl : Bukkit. getOnlinePlayers ( ) ) {
                    for ( int j = 0 ; j < 100 ; j ++ ) {
                        pl. sendMessage ( "\n" ) ;
                    }
                }
                return ;
            }

            for ( int i = 0 ; i < 100 ; i ++ ) {
                p. sendMessage ( "\n" ) ;
            }
        }
    }
}

Prepare for more in the future
Resource Information
Author:
----------
Total Downloads: 46
First Release: Oct 14, 2021
Last Update: Oct 14, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings