mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-21 07:13:00 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+6
-1
@@ -72,7 +72,12 @@ public class qaspace extends script.base_script
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
sendSystemMessageTestingOnly(self, "QaSpace script attached.");
|
||||
if (!isGod(self) || getGodLevel(self) < 50 || !isPlayer(self)) {
|
||||
detachScript(self, "test.qaspace");
|
||||
}
|
||||
else {
|
||||
sendSystemMessageTestingOnly(self, "QaSpace script attached.");
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnDetach(obj_id self) throws InterruptedException
|
||||
|
||||
Reference in New Issue
Block a user