remove markers when app unloads or not loaded

This commit is contained in:
gnembon committed 2019-10-23 08:49:58 -03:00
1 parent b90da71359
commit e21cbf5f59
8 files changed
+76 -4

No files matched your search

@@ -358,6 +358,7 @@ public class CarpetScriptServer
}
// stop all events associated with name
events.removeAllHostEvents(name);
modules.get(name).onClose();
modules.remove(name);
CarpetServer.settingsManager.notifyPlayersCommandsChanged();
Messenger.m(source, "gi Removed "+name+" app");