public static void serverCmdUse(GameConnection client, ItemData data) { if (((Player)client.getControlObject()).isObject()) { ((Player)client.getControlObject()).Use(data); } }
public static void serverCmdToggleCamera(GameConnection client) { string control; if (client.getControlObject() == client["player"]) { ((Extendable.Camera) client["camera"]).setVelocity(new Point3F("0 0 0")); control = client["camera"]; } else { ((Player) client["player"]).setVelocity(new Point3F("0 0 0")); control = client["player"]; } client.setControlObject(control); syncEditorGui(); }
public static void serverCmdUse(GameConnection client, ItemData data) { if (((Player) client.getControlObject()).isObject()) ((Player) client.getControlObject()).Use(data); }