Skip to content

Instantly share code, notes, and snippets.

@kinggoesgaming
Created February 12, 2016 20:31
Show Gist options
  • Save kinggoesgaming/cec674e7786b16c7ee23 to your computer and use it in GitHub Desktop.
Save kinggoesgaming/cec674e7786b16c7ee23 to your computer and use it in GitHub Desktop.
public class {
public AnotherOne() {
}
@CommandSpecifier("inscrutable", "poet") private CommandSpec inscrutableThePoet = CommandSpec.builder.description(Text.of("I love Insrutable's poetry!").build();
@CommandSpecifier("haxy") private CommandSpec clienthaxHacks = CommandSpec.builder.description().build();
}
@Listener
public void onInit(GameInitializationEvent e) {
Sponge.getCommandManager().register(this, new AnotherOne());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment