mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-04 20:12:56 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+4
-1
@@ -39,7 +39,10 @@ public class mfarone_test extends script.base_script
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
if (hasObjVar(self, "idiot_testing"))
|
||||
if (!isGod(self) || getGodLevel(self) < 50 || !isPlayer(self)) {
|
||||
detachScript(self, "test.mfarone_test");
|
||||
}
|
||||
else if (hasObjVar(self, "idiot_testing"))
|
||||
{
|
||||
sendSystemMessage(self, "mfarone_test script attached.", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user