Fixed player script enabled button not working right on servers. Added more player events and a getDimension() method to ScriptPlayer. Set player scripts to be off by default.

This commit is contained in:
luisc committed 2021-10-15 09:17:31 -05:00
1 parent 047552d9e5
commit a9bce4a3e3
9 files changed
+178 -44

No files matched your search

@@ -41,7 +41,7 @@ public class PlayerDataScript implements IScriptHandler {
private long lastPlayerUpdate = 0L;
public long lastInited = -1L;
public boolean hadInteract = true;
public boolean enabled = true;
public boolean enabled = false;
private static Map<Long, String> console = new TreeMap();
private static List<Integer> errored = new ArrayList();
@@ -155,6 +155,7 @@ public class PlayerDataScript implements IScriptHandler {
}
public void setEnabled(boolean bo) {
ScriptController.Instance.playerScripts.enabled = bo;
this.enabled = bo;
}