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, CONVERT_STAT_NAMES_TO_IDS, debugLic, defaultAllowClientToClientMessage, DiffTimeToSkipDirLocOrientMessage, extensionHooks, extensionMessageRegistry, extraPlayerMessageTypes, idleTimeout, log, LOGIN_QUEUE_MAX_USERS, 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_SERVER_RELOAD, MSG_TYPE_SERVER_SHUTDOWN, MSG_TYPE_SERVER_SHUTDOWN_MESSAGE, MSG_TYPE_UPDATE_PLAYER_IGNORE_LIST, MSG_TYPE_VOICE_PARMS, PERCEPTION_GAIN_THRESHOLD, perceptionFilter, perceptionSubId, playerFirstSpeedHackTime, playerLastClientTime, playerLastServerTime, playerManager, playersOnlineList, playersOnlineOnProxy, playerSpeedHackCount, proxyCallbackHistogram, proxyQueueHistogram, responderFilter, responderFilter2, responderSubId, responderSubId2, restriction_level, serverCapabilitiesSentToClient, silenceLoadingTimeout, silenceTimeout, SpeedhackChatMsg, SpeedhackCountToDisconect, SpeedhackMinDiff, tokenError, voiceServerHost, voiceServerPort
DevMode, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_RELOAD_TEMPLATES, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, selectionFilter, selectionSubscription, subObjectSubscription
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
AgisProxyPlugin() |
Modifier and Type | Method and Description |
---|---|
static void |
banUser(OID characterOid) |
static void |
banUser(java.lang.String characterName) |
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) |
static boolean |
logoutPlayer(OID playerOid)
Send message to force logout player by OID
|
static boolean |
logoutPlayer(java.lang.String playerName)
Send message to force logout player by name
|
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 void |
ReloadTemplates(Message msg)
Function to Execute Reload Data
|
protected static void |
removeAccountFromBanList(OID accountID) |
void |
run() |
void |
SendFriendsList(OID playerOid) |
protected void |
sendPlayersOnline(boolean loggingOut) |
static void |
sendTargetMessage(MessageType msgType,
OID target)
Send Tagteted message to player by player OID
|
static void |
sendTargetMessage(MessageType msgType,
java.lang.String targetName)
Send Targeted message to player by character name
|
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, isOnBlockList2, loadPlayerObject, matchingPlayers, processAbilityStatusEvent, processActivateItem, processAutoAttack, processCom, processCommand, processConnectionResetInternal, processDirLocOrient, processExtensionMessageEvent, processLoginHelper, processLogout, processPacket, processPlayerHa, 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, 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, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObject
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
protected void registerProxyHooks()
public void run()
run
in interface java.lang.Runnable
protected void ReloadTemplates(Message msg)
ReloadTemplates
in class ProxyPlugin
public static void sendTargetMessage(MessageType msgType, OID target)
msgType
- target
- public static void sendTargetMessage(MessageType msgType, java.lang.String targetName)
msgType
- targetName
- public static boolean logoutPlayer(OID playerOid)
playerOid
- public static boolean logoutPlayer(java.lang.String playerName)
playerOid
- 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)
public static void banUser(OID characterOid)
public static void banUser(java.lang.String characterName)
protected static void removeAccountFromBanList(OID accountID)
public void SendFriendsList(OID playerOid)