mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-21 12:03:08 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+6
@@ -13,6 +13,12 @@ public class buy_box extends script.base_script
|
||||
public buy_box()
|
||||
{
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException {
|
||||
if (!isGod(self) || getGodLevel(self) < 10 || !isPlayer(self)) {
|
||||
detachScript(self, "test.buy_box");
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnObjectMenuSelect(obj_id self, obj_id player, int item) throws InterruptedException
|
||||
{
|
||||
LOG("tony_test", "player " + player + " item " + item);
|
||||
|
||||
Reference in New Issue
Block a user