mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-11 02:07:38 +00:00
Updated for new SpoutAPI command methods
This commit is contained in:
parent
c0d13e9b7d
commit
68c821d8a6
@ -80,7 +80,7 @@ public class SpoutServerInterface extends ServerInterface {
|
|||||||
@Override
|
@Override
|
||||||
public void onCommandRegistration(List<Command> commands) {
|
public void onCommandRegistration(List<Command> commands) {
|
||||||
for (Command command : commands) {
|
for (Command command : commands) {
|
||||||
Spout.getGame().getRootCommand().sub(plugin, command.aliases()[0])
|
Spout.getGame().getRootCommand().addSubCommand(plugin, command.aliases()[0])
|
||||||
.addAlias(command.aliases()).setRawExecutor(executor).closeSubCommand();
|
.addAlias(command.aliases()).setRawExecutor(executor).closeSubCommand();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user