22.12.2015, 17:35
Quote:
Hello, first of all great job on this plugin!
I've got a question regarding a command. Let's say I have a command and I make it so it has one parameter (a string), but that parameter is like one whole sentence (for example: /kick This is a sentence), how can I make it so it acts this way? |
From a users perspective, its not that nice. You could try to create your own command manager which would satisfy your needs.
Also, PlayerCommand manager is only a helper mechanism, you can register a command with PlayerCommandEvent.
Код:
eventManager.registerHandler(PlayerCommandEvent.class, (player, command) -> { });