changes in 1.16 require to re-register commands after datapack reload. May affect extensions with custom CMs - doubt there is any.
This commit is contained in:
1 parent
c94ba6a021
commit
d6845487ce
2 files changed
+7
-3
No files matched your search
@@ -76,8 +76,6 @@ public class SettingsManager
|
||||
{
|
||||
this.server = server;
|
||||
loadConfigurationFromConf();
|
||||
registerCommand(server.getCommandManager().getDispatcher());
|
||||
notifyPlayersCommandsChanged();
|
||||
}
|
||||
|
||||
public void detachServer()
|
||||
@@ -359,7 +357,7 @@ public class SettingsManager
|
||||
return rule;
|
||||
}
|
||||
|
||||
private void registerCommand(CommandDispatcher<ServerCommandSource> dispatcher)
|
||||
public void registerCommand(CommandDispatcher<ServerCommandSource> dispatcher)
|
||||
{
|
||||
if (dispatcher.getRoot().getChildren().stream().anyMatch(node -> node.getName().equalsIgnoreCase(identifier)))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user