mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
29 lines
824 B
Java
Executable File
29 lines
824 B
Java
Executable File
package script.beta;
|
|
|
|
import script.menu_info;
|
|
import script.obj_id;
|
|
|
|
public class terminal_warp extends script.base_script
|
|
{
|
|
public terminal_warp()
|
|
{
|
|
}
|
|
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info mi) throws InterruptedException
|
|
{
|
|
if (isGod(player) || hasObjVar(player, "beta.terminal_ok"))
|
|
{
|
|
if (!hasScript(player, "beta.player_warp"))
|
|
{
|
|
attachScript(player, "beta.player_warp");
|
|
}
|
|
sendSystemMessageTestingOnly(player, "Warp script attached.");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
else
|
|
{
|
|
sendSystemMessageTestingOnly(player, "Only authorized users may access this terminal.");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|
|
}
|