All external scripts of type "Java" are now synced to client on login/script reload

This commit is contained in:
bigguy345 committed 2025-12-15 10:28:17 +02:00
1 parent 8a2ba6ae4e
commit a8b3c0b8d4
4 files changed
+49 -27

No files matched your search

@@ -12,6 +12,7 @@ public class ScriptCommand extends CommandKamkeelBase {
@SubCommand(desc = "Reload scripts data and folders.")
public Boolean reload(ICommandSender sender, String args[]) {
ScriptController.Instance.loadCategories();
ScriptController.Instance.syncClientScripts(null);
if (ScriptController.Instance.loadPlayerScripts())
sendResult(sender, "Reload player scripts successfully");