|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.electrotank.electroserver4.extensions.api.value.RoomConfiguration
public class RoomConfiguration
Object class that holds the configuration of a single room.
GameConfiguration,
ZoneConfiguration,
ElectroServerApi.createRoom,
ElectroServerApi.createRoomInNamedZone,
ElectroServer 4 Manual, Creating a Room,
ElectroServer 4 Manual, Language Filter,
ElectroServer 4 Manual, Flooding Filter| Constructor Summary | |
|---|---|
RoomConfiguration()
Constructs a new instance of RoomConfiguration. |
|
| Method Summary | |
|---|---|
void |
addPlugin(ExtensionComponentConfiguration plugin)
Adds a plug-in to the list of plug-ins for the room. |
RoomConfiguration |
clone()
Constructs a clone of the RoomConfiguration object. |
int |
getCapacity()
Gets the capacity of the room. |
String |
getDescription()
Gets a description of the room. |
int |
getFloodingFilterBanDuration()
Gets the amount of time in seconds to ban a user for a flooding filter violation. |
int |
getFloodingFilterFailuresBeforeKick()
Gets the total number of flooding filter failures allowed by a user before that user is kicked from the room. |
int |
getFloodingFilterKicksBeforeBan()
Gets the total number of times to kick a user for flooding violations before that user is banned. |
String |
getFloodingFilterName()
Gets the name of the flooding filter. |
int |
getLanguageFilterBanDuration()
Gets the duration of the ban that the language filter will impose. |
int |
getLanguageFilterFailuresBeforeKick()
Gets the number of times the user is allowed to send messages that fail the language filter, before he is kicked from the room. |
int |
getLanguageFilterKicksBeforeBan()
Gets the number of times the user can be kicked due to language filter failures before he is disconnected from the server and banned from returning. |
String |
getLanguageFilterName()
Gets the name of the room's language filter. |
String |
getName()
Gets the name of the room. |
String |
getPassword()
Gets the password for the room. |
List<ExtensionComponentConfiguration> |
getPlugins()
Gets a list of the plug-ins for the room. |
boolean |
isFloodingFilterResetAfterKick()
Is the flooding filter reset after a kick? If set to true, then the user’s offenses are erased and reset after kicking, so the user would never get banned automatically. |
boolean |
isFloodingFilterSpecified()
Is a specified flooding filter for this room? |
boolean |
isHidden()
Is this room hidden? If a room is hidden, it will not show in the list of rooms that can be entered. |
boolean |
isLanguageFilterDeliverMessageOnFailure()
If a message fails the language filter, will it be delivered anyway? |
boolean |
isLanguageFilterResetAfterKick()
Should the language filter reset after a kick? If this is set to yes, then every time the user is kicked, it resets the process as if the user never been kicked. |
boolean |
isLanguageFilterSpecified()
Is there a specified language filter for this room? |
boolean |
isNonOperatorUpdateAllowed()
Is a user who is not an operator allowed to update the room? |
boolean |
isNonOperatorVariableUpdateAllowed()
Is a user who is not an operator allowed to update room variables? |
boolean |
isPersistent()
Is this room persistent? If a room is persistent, it will not be deleted when the last person leaves it. |
boolean |
isUsingFloodingFilter()
Does this room use a flooding filter? |
boolean |
isUsingLanguageFilter()
Does this room use a language filter? |
void |
setCapacity(int capacity)
Sets the capacity of the room. |
void |
setDescription(String description)
Sets the description of the room. |
void |
setFloodingFilterBanDuration(int floodingFilterBanDuration)
Sets the amount of time in seconds to ban a user for a flooding filter violation. |
void |
setFloodingFilterFailuresBeforeKick(int floodingFilterFailuresBeforeKick)
Sets the total number of flooding filter failures allowed by a user before that user is kicked from the room. |
void |
setFloodingFilterKicksBeforeBan(int floodingFilterKicksBeforeBan)
Sets the total number of times to kick a user for flooding violations before that user is banned. |
void |
setFloodingFilterName(String floodingFilterName)
Sets the name of the flooding filter. |
void |
setFloodingFilterResetAfterKick(boolean floodingFilterResetAfterKick)
Sets a boolean indicating whether the flooding filter will be reset after a kick. |
void |
setFloodingFilterSpecified(boolean floodingFilterSpecified)
Sets whether a flooding filter has been specified for this room. |
void |
setHidden(boolean hidden)
Sets the room to hidden or not. |
void |
setHidden(String hiddenString)
Sets the room to hidden or not. |
void |
setLanguageFilterBanDuration(int banDuration)
Sets the number of seconds that a user will be banned if the language filter ban is triggered. |
void |
setLanguageFilterDeliverMessageOnFailure(boolean deliverMessageOnFailure)
Sets whether a message that fails the language filter will be delivered anyway. |
void |
setLanguageFilterFailuresBeforeKick(int failuresBeforeKick)
Sets the number of times the user is allowed to send messages that fail the language filter, before he is kicked from the room. |
void |
setLanguageFilterKicksBeforeBan(int kicksBeforeBan)
Sets the number of times the user can be kicked due to language filter failures before he is disconnected from the server and banned from returning. |
void |
setLanguageFilterName(String languageFilterName)
Sets the name of the room's language filter. |
void |
setLanguageFilterResetAfterKick(boolean resetAfterKick)
Sets whether the language filter should reset after a kick? If this is set to yes, then every time the user is kicked, it resets the process as if the user never been kicked. |
void |
setLanguageFilterSpecified(boolean roomFilterSpecified)
Sets whether there is a specified language filter for this room. |
void |
setName(String name)
Sets the name of the room. |
void |
setNonOperatorUpdateAllowed(boolean nonOperatorUpdateAllowed)
Sets whether a user who is a non-operator is allowed to update the room. |
void |
setNonOperatorVariableUpdateAllowed(boolean nonOperatorVariableUpdateAllowed)
Sets whether a user who is not an operator is allowed to update room variables? |
void |
setPassword(String password)
Sets the password for the room. |
void |
setPersistent(boolean persistent)
Sets the room to be persistent or not. |
void |
setUsingFloodingFilter(boolean useFloodingFilter)
Sets whether this room uses a flooding filter. |
void |
setUsingLanguageFilter(boolean useLanguageFilter)
Sets whether this room uses a language filter. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoomConfiguration()
| Method Detail |
|---|
public final RoomConfiguration clone()
clone in class Objectpublic int getCapacity()
public void setCapacity(int capacity)
capacity - number of users allowed in the roompublic boolean isHidden()
public void setHidden(String hiddenString)
hiddenString - "true" to set the room to hiddenpublic void setHidden(boolean hidden)
hidden - true to set the room to hiddenpublic String getName()
public void setName(String name)
name - name of the roompublic String getPassword()
public void setPassword(String password)
password - password for the roompublic List<ExtensionComponentConfiguration> getPlugins()
public void addPlugin(ExtensionComponentConfiguration plugin)
plugin - plug-in to be addedpublic boolean isPersistent()
public void setPersistent(boolean persistent)
persistent - boolean indicating whether the room is persistentpublic String getDescription()
public void setDescription(String description)
description - description of the roompublic boolean isNonOperatorUpdateAllowed()
public void setNonOperatorUpdateAllowed(boolean nonOperatorUpdateAllowed)
nonOperatorUpdateAllowed - boolean indicating whether a non-operator is allowed to update the roompublic boolean isNonOperatorVariableUpdateAllowed()
public void setNonOperatorVariableUpdateAllowed(boolean nonOperatorVariableUpdateAllowed)
nonOperatorVariableUpdateAllowed - boolean indicating whether a non-operator is allowed to update the room variablespublic int getLanguageFilterBanDuration()
public void setLanguageFilterBanDuration(int banDuration)
banDuration - duration of the language filter banpublic boolean isLanguageFilterDeliverMessageOnFailure()
public void setLanguageFilterDeliverMessageOnFailure(boolean deliverMessageOnFailure)
deliverMessageOnFailure - boolean indicating whether a message that fails the
language filter will be delivered anywaypublic int getLanguageFilterKicksBeforeBan()
public void setLanguageFilterKicksBeforeBan(int kicksBeforeBan)
kicksBeforeBan - number of language filter kicks before banningpublic int getLanguageFilterFailuresBeforeKick()
public void setLanguageFilterFailuresBeforeKick(int failuresBeforeKick)
failuresBeforeKick - number of language filter failures before kickpublic String getLanguageFilterName()
public void setLanguageFilterName(String languageFilterName)
languageFilterName - name of the language filterpublic boolean isLanguageFilterSpecified()
public void setLanguageFilterSpecified(boolean roomFilterSpecified)
roomFilterSpecified - boolean indicating whether there is a specified language filter for this roompublic boolean isLanguageFilterResetAfterKick()
public void setLanguageFilterResetAfterKick(boolean resetAfterKick)
resetAfterKick - boolean indicating whether to reset the language filter after a kickpublic int getFloodingFilterBanDuration()
public void setFloodingFilterBanDuration(int floodingFilterBanDuration)
floodingFilterBanDuration - number of seconds to ban a user for floodingpublic int getFloodingFilterFailuresBeforeKick()
public void setFloodingFilterFailuresBeforeKick(int floodingFilterFailuresBeforeKick)
floodingFilterFailuresBeforeKick - number of flooding filter failures before kickpublic int getFloodingFilterKicksBeforeBan()
public void setFloodingFilterKicksBeforeBan(int floodingFilterKicksBeforeBan)
floodingFilterKicksBeforeBan - number of flooding filter kicks before banpublic String getFloodingFilterName()
public void setFloodingFilterName(String floodingFilterName)
floodingFilterName - flooding filter namepublic boolean isFloodingFilterResetAfterKick()
public void setFloodingFilterResetAfterKick(boolean floodingFilterResetAfterKick)
floodingFilterResetAfterKick - boolean indicating whether the flooding filter will be reset after a kickpublic boolean isUsingFloodingFilter()
public void setUsingFloodingFilter(boolean useFloodingFilter)
useFloodingFilter - boolean indicating whether a flooding filter is usedpublic boolean isUsingLanguageFilter()
public void setUsingLanguageFilter(boolean useLanguageFilter)
useLanguageFilter - boolean indicating whether a language filter is usedpublic boolean isFloodingFilterSpecified()
public void setFloodingFilterSpecified(boolean floodingFilterSpecified)
floodingFilterSpecified - boolean indicating whether a flooding filter has been specified
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||