scripts unloading

This commit is contained in:
gnembon committed 2019-05-17 00:12:36 -03:00
1 parent 1a4adca444
commit ed06d4e0cd
2 files changed
+2 -1

No files matched your search

@@ -191,7 +191,7 @@ public class ScriptCommand
executes((cc) ->
{
boolean success =CarpetServer.scriptServer.removeScriptHost(StringArgumentType.getString(cc, "package"));
Messenger.m(cc.getSource(), success?"w Successfully added a module":"r Failed to add a module");
Messenger.m(cc.getSource(), success?"w Successfully removed a module":"r Failed to remove a module");
return success?1:0;
}));
@@ -255,6 +255,7 @@ public class CarpetScriptServer
return false;
// stop all events associated with name
modules.remove(name);
CarpetSettings.notifyPlayersCommandsChanged();
return true;
}
}