mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-09-11 21:45:23 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+7
@@ -35,6 +35,13 @@ public class teidson_test extends script.base_script
|
||||
public teidson_test()
|
||||
{
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
if (!isGod(self) || getGodLevel(self) < 50 || !isPlayer(self)) {
|
||||
detachScript(self, "test.teidson_test");
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnSpeaking(obj_id self, String strText) throws InterruptedException
|
||||
{
|
||||
String[] strCommands = split(strText, ' ');
|
||||
|
||||
Reference in New Issue
Block a user