net.user1.union.module
Class MaxRooms

java.lang.Object
  extended by net.user1.union.module.MaxRooms
All Implemented Interfaces:
Module

public class MaxRooms
extends java.lang.Object
implements Module

This module enforces a max room limitation on the server. It requires the attribute maxRooms. Example:

      
          MaxRooms
           net.user1.union.module.MaxRooms
           
               50
                   
         
   


Constructor Summary
MaxRooms()
           
 
Method Summary
 boolean init(ModuleContext ctx)
          Called when the module is initialized.
 void onRoomCreateRequest(ServerEvent evt)
           
 void shutdown()
          Called when the module is shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxRooms

public MaxRooms()
Method Detail

init

public boolean init(ModuleContext ctx)
Description copied from interface: Module
Called when the module is initialized. Use this method to perform any custom initialization in the module code. If the module code cannot perform initialization successfully then this method should return false which will cause the room to not be deployed to the server.

Specified by:
init in interface Module
Returns:
false if the module failed to initialize, otherwise true.

onRoomCreateRequest

public void onRoomCreateRequest(ServerEvent evt)

shutdown

public void shutdown()
Description copied from interface: Module
Called when the module is shutdown. Use this method to cleanup any resources created by the module.

Specified by:
shutdown in interface Module


Copyright USER1 Subsystems Corporation - Tue Jan 28 2014, 05:05 PM -0500