package script.beta; import script.dictionary; import script.library.utils; import script.obj_id; public class player_warp extends script.base_script { public player_warp() { } public int OnSpeaking(obj_id self, String text) throws InterruptedException { if (text.startsWith("warp")) { java.util.StringTokenizer st = new java.util.StringTokenizer(text); if (st.countTokens() < 5) { sendSystemMessageTestingOnly(self, "format: warp "); return SCRIPT_CONTINUE; } LOG("LOG_CHANNEL", "tokens -> " + st.countTokens() + " nextToken ->" + st.nextToken()); if (st.hasMoreTokens()) { String planet = st.nextToken(); float x = utils.stringToInt(st.nextToken()); float y = utils.stringToInt(st.nextToken()); float z = utils.stringToInt(st.nextToken()); warpPlayer(self, planet, x, y, z, null, 0.0f, 0.0f, 0.0f); } } if (text.startsWith("create")) { java.util.StringTokenizer st = new java.util.StringTokenizer(text); if (st.countTokens() < 2) { sendSystemMessageTestingOnly(self, "format: create