public class AgisProxyPlugin extends ProxyPlugin implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
class |
AgisProxyPlugin.AddFriendHook |
class |
AgisProxyPlugin.CancelLogoutRequestHook |
class |
AgisProxyPlugin.GetFriendsHook |
class |
AgisProxyPlugin.LogoutRequestHook |
ProxyPlugin.AddStaticPerceptionMessage, ProxyPlugin.CommandAccessCheck, ProxyPlugin.CommandParser, ProxyPlugin.EventCallback, ProxyPlugin.PlayerLoginStatus, ProxyPlugin.PlayerMessageCallback, ProxyPlugin.PluginMessageCallback, ProxyPlugin.ProxyJMX, ProxyPlugin.ProxyJMXMBean
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, EnginePlugin.GetPropertyNamesMessage, EnginePlugin.LoadHook, EnginePlugin.LoadSubObjHook, EnginePlugin.PluginActivateHook, EnginePlugin.PluginStateMessage, EnginePlugin.SaveHook, EnginePlugin.SaveSubObjHook, EnginePlugin.SetPropertyMessage, EnginePlugin.SubObjData, EnginePlugin.TransferFilter, EnginePlugin.TransferObjectMessage, EnginePlugin.UnloadHook, EnginePlugin.UnloadSubObjHook
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<OID,java.lang.Long> |
bannedUsers |
static java.util.HashMap<java.lang.String,java.util.ArrayList<OID>> |
chatChannelSubscribers |
static java.util.HashMap<OID,java.util.ArrayList<OID>> |
friendReverseMap |
static int |
LOGOUT_TIME |
static boolean |
LOGOUT_TO_CHARACTER_SELECTION |
static java.util.HashMap<OID,atavism.agis.plugins.AgisProxyPlugin.ScheduledLogout> |
scheduledLogouts |
capacityError, clientPort, commandMapLock, defaultAllowClientToClientMessage, DiffTimeToSkipDirLocOrientMessage, extensionHooks, extensionMessageRegistry, extraPlayerMessageTypes, idleTimeout, log, maxByteCountBeforeConnectionReset, MaxConcurrentUsers, maxMessagesBeforeConnectionReset, MSG_TYPE_ACCOUNT_LOGIN, MSG_TYPE_ADD_STATIC_PERCEPTION, MSG_TYPE_GET_MATCHING_PLAYERS, MSG_TYPE_GET_PLAYER_LOGIN_STATUS, MSG_TYPE_LOGIN_SPAWNED, MSG_TYPE_LOGOUT_PLAYER, MSG_TYPE_PLAYER_IGNORE_LIST, MSG_TYPE_PLAYER_IGNORE_LIST_REQ, MSG_TYPE_PLAYER_PATH_REQ, MSG_TYPE_RELAY_UPDATE_PLAYER_IGNORE_LIST, MSG_TYPE_REMOVE_STATIC_PERCEPTION, MSG_TYPE_UPDATE_PLAYER_IGNORE_LIST, MSG_TYPE_VOICE_PARMS, PERCEPTION_GAIN_THRESHOLD, perceptionFilter, perceptionSubId, playerManager, playersOnlineList, playersOnlineOnProxy, proxyCallbackHistogram, proxyQueueHistogram, responderFilter, responderSubId, serverCapabilitiesSentToClient, serverSocket, silenceLoadingTimeout, silenceTimeout, tokenError, voiceServerHost, voiceServerPort
deleteSubObjectSubscription, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, loadSubObjectSubscription, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, saveSubObjectSubscription, selectionFilter, selectionSubscription, setSubObjectPersistenceSubscription, subObjectSubscription, unloadSubObjectSubscription
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
AgisProxyPlugin() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<OID> |
getOids()
Used to get a Set of all players logged in.
|
OID |
getPlayerOid(java.lang.String name) |
boolean |
isPlayerOnline(OID oid) |
protected void |
logPlayerOut(OID playerOid) |
void |
onActivate()
onActivate() is the real startup method.
|
protected boolean |
processLogin(ClientConnection con,
AuthorizedLoginEvent loginEvent)
process login message from the client.
|
protected void |
registerProxyHooks() |
protected static void |
removeAccountFromBanList(OID accountID) |
void |
run() |
void |
SendFriendsList(OID playerOid) |
protected void |
sendPlayersOnline(boolean loggingOut) |
acceptConnection, addAdmin, addExtraPlayerExtensionMessageType, addExtraPlayerMessageType, addFilteredProperty, addPlayerMessage, addPlayerSpecificProperty, addProxyExtensionHook, addStaticPerception, addStaticPerception, allowClientToClientMessage, connectionReset, createMBeanInstance, getAdmins, getAllPlayerNames, GetConnectionLimit, getExtensionMessageType, getExtraPlayerMessageTypes, getInstanceEntryCallback, getPlayer, getPlayerNames, getPlayerOids, getPlayers, getProxyExtensionHooks, getProxyLoginCallback, getStatusMap, handleFreeRoad, handleFullInstance, incrementChatCount, incrementPrivateChatCount, initializeVoiceServerInformation, isAdmin, isDevMode, isOnBlockList, loadPlayerObject, matchingPlayers, processAbilityStatusEvent, processActivateItem, processAutoAttack, processCom, processCommand, processConnectionResetInternal, processDirLocOrient, processExtensionMessageEvent, processLoginHelper, processLogout, processPacket, processPlayerIgnoreList, processQuestResponse, processReqConcludeQuest, processRequestQuestInfo, processSceneLoaded, pushInstanceRestorePoint, recreatePlayerSpecificCache, registerCommand, registerCommand, registerExtensionSubtype, removeStaticPerception, sendOceanData, sendPlayerIgnoreList, setDevMode, setExtraPlayerMessageTypes, setInstanceEntryCallback, setProxyLoginCallback, specialCaseFreeProcessing, specialCaseNewProcessing, unregisterExtensionSubtype, updateIgnoredOids, verifyPlayer
activate, createSubscription, getHookManager, getMessageHandler, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setMessageHandler, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMessage
public static java.util.HashMap<OID,java.lang.Long> bannedUsers
public static java.util.HashMap<java.lang.String,java.util.ArrayList<OID>> chatChannelSubscribers
public static java.util.HashMap<OID,atavism.agis.plugins.AgisProxyPlugin.ScheduledLogout> scheduledLogouts
public static int LOGOUT_TIME
public static boolean LOGOUT_TO_CHARACTER_SELECTION
public void onActivate()
ProxyPlugin
onActivate
in class ProxyPlugin
ProxyPlugin.registerHooks()
,
ProxyPlugin.EventCallback.doWork(java.lang.Object, java.lang.Object)
protected void registerProxyHooks()
public void run()
run
in interface java.lang.Runnable
protected boolean processLogin(ClientConnection con, AuthorizedLoginEvent loginEvent)
processLogin
in class ProxyPlugin
con
- The connection to the client.loginEvent
- The client message that asks to log the client in.protected void logPlayerOut(OID playerOid)
protected void sendPlayersOnline(boolean loggingOut)
public java.util.Set<OID> getOids()
public OID getPlayerOid(java.lang.String name)
public boolean isPlayerOnline(OID oid)
protected static void removeAccountFromBanList(OID accountID)
public void SendFriendsList(OID playerOid)