Code: Select all
Room newRoom = null;
// Here we pass the room parameters
HashMap map = new HashMap();
map.put("name", ScriptConst.GAME_NAME+romcounter);
map.put("pwd", "");
map.put("maxU", "4");
map.put("maxS", "0");
map.put("isGame", "true");
map.put("xtName", "SFS_Game");
map.put("xtClass", "SFS_Game");
helper.createRoom(zone, map, null, true, true);
We are assuming this creates a room level plugin.
In Electroserver we can access this plugin in the following manner:
Code: Select all
SFS_Game game = (SFS_Game)getApi().getRoomPlugin(zoneid, roomid, "SFS_Game");
Is there an equivalent for this in SFS .
If not,How can we access the plugin for a specific room.
Thanks in advance,
Manx