Coder Social home page Coder Social logo

commander's Introduction

ravenlab

commander's People

Contributors

virustotalop avatar

Stargazers

 avatar

Watchers

 avatar  avatar

commander's Issues

Refactor registerAlias method

Refactor registerAlias() to the Commander class. Each platform commander should provide the registered aliases. This data then can be used in the Commander class to then handle registering there.

Add command usage field

Add command usage field if a command does not execute it should return the usage back to the user if they have permission to do so.

Add automatic unregistering support

Make an interface for commanders so that a listener can be added for when a plugin is disabled so that commands can be automatically unregistered.

Mock bukkit server

Currently can't mock the bukkit server due to needing to access fields via reflection. Mockito should be investigated further and if mockito doesn't have something for this then we might need to make something for it.

Allow commands to be configured via code

Commands should be able to be configured via code. This will be useful so that if a user wants to make command usage, permissions etc a plugin could implement it.

Refactor classes into carwash project

The wrapper classes should be refactored into the carwash project. This was needed originally for DynamicGui but it was never done. This should be done for future projects to ensure a central code base.

Rewrite test harness

The current test harness has a lot of overlap when implementing new platforms. These tests should probably be abstracted in some way, maybe junit runners? Some code won't be able to be abstracted such as testing internal components.

Support command wrapping and unwrapping

CommandMap map;

Command original = map.get("test");
if(original != null) {
	map.put("test", new Command() {
		public void command(sender, command, label, args) {
			if(args.length == 0) {
				//execute registered command
			} else {
				original.command(sender, command, label, args);
			}
		}
	});
} else {
	//Just register regular command
}

If a command is wrapped on unregister it should unwrap.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.