function pluginInit(hash) { //This method is called when the room starts trace("----Plug-in Initialized----"); trace("Zone name: "+getZoneName()); trace("Room name: "+getRoomName()); } function pluginRequest(hash) { var caller = hash.get("ExecutingUserName"); var method = hash.get("Method"); if (method == "DoSomething") { doSomeRoomVariableStuff(); } else if (method == "TestMessage") { testMessage(caller); } else if (method == "InspectServer") { inspectServer(caller); } } function inspectServer(caller) { //Just showing how to get the list of zones, and get the rooms per zone var zones = getAllZones(); trace("--Tracing all Zones and Rooms--"); for (var i=0;i