mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+3
@@ -59,6 +59,9 @@ public class char_transfer extends script.base.remote_object_requester
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
if (!isGod(self) || getGodLevel(self) < 10 || !isPlayer(self)) {
|
||||
detachScript(self, "test.char_transfer");
|
||||
}
|
||||
debugConsoleMsg(self, "char_transfer attached!");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user