Skip to content

Console 1.0.0

Latest

Choose a tag to compare

@Feisk73 Feisk73 released this 14 May 21:48
· 5 commits to main since this release

Command list:

  1. help returns a list of all console commands with descriptions
  2. random returns a random number
  3. exit shuts console
  4. ping returns ping of given url
  5. clear clears messages
  6. base64 decrypts and encrypts base64
  7. echo returns the given string
  8. calc returns the result of operations: + − × ÷ %
  9. time returns current date and time

Sample command:

public class SampleCommand extends CommandBase implements Command {
        public SampleCommand(ConsoleMain main) {
        super(main);
    }

    @Override
    public void execute(String[] args) {
        print("Hello, World");
    }

    @Override
    public String getDescription() {
        return "sample command";
    }
}

java_7ZVAe42H01