mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Fix sponge changes
This commit is contained in:
parent
fd109b2407
commit
b9d55661b8
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user