Fix sponge changes

This commit is contained in:
Blue (Lukas Rieger) 2021-08-10 21:46:20 +02:00
parent fd109b2407
commit b9d55661b8
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ public CommandResult process(CommandCause cause, ArgumentReader.Mutable argument
String context = ex.getContext();
if (context != null) cause.audience().sendMessage(Component.text(context, NamedTextColor.GRAY));
return CommandResult.empty();
return CommandResult.builder().result(0).build();
}
}

View File

@ -186,7 +186,7 @@ public void registerListener(ServerEventListener listener) {
@Override
public void unregisterAllListeners() {
Sponge.eventManager().unregisterPluginListeners(this.pluginContainer);
Sponge.eventManager().unregisterListeners(this.pluginContainer);
Sponge.eventManager().registerListeners(this.pluginContainer, this);
}