Added god mode checks to all QA and testing scripts.

This commit is contained in:
Cekis
2016-12-26 22:08:07 +00:00
parent ee32c911db
commit 5daa65da6a
135 changed files with 164 additions and 21330 deletions
+4
View File
@@ -126,6 +126,7 @@ public class cmd extends script.base_script
}
public int cmdMoney(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
{
if(!isGod(self)) return SCRIPT_CONTINUE;
dictionary d = gm.parseTarget(params, target, "CREDITS");
if (d == null)
{
@@ -203,11 +204,13 @@ public class cmd extends script.base_script
}
public int cmdBroadcast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
{
if(!isGod(self)) return SCRIPT_CONTINUE;
queueCommand(self, (-351572629), target, params, COMMAND_PRIORITY_DEFAULT);
return SCRIPT_CONTINUE;
}
public int cmdBroadcastPlanet(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
{
if(!isGod(self)) return SCRIPT_CONTINUE;
if (params != null && !params.equalsIgnoreCase(""))
{
sendSystemMessagePlanetTestingOnly(params);
@@ -221,6 +224,7 @@ public class cmd extends script.base_script
}
public int cmdBroadcastGalaxy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
{
if(!isGod(self)) return SCRIPT_CONTINUE;
if (params != null && !params.equalsIgnoreCase(""))
{
sendSystemMessageGalaxyTestingOnly(params);