public class GuildClient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GuildClient.createGuildMessage |
static class |
GuildClient.getPlayerIsOnlineMessage |
static class |
GuildClient.guildClaimPermitionMessage |
static class |
GuildClient.guildCommandMessage |
Modifier and Type | Field and Description |
---|---|
static MessageType |
MSG_TYPE_CREATE_GUILD |
static MessageType |
MSG_TYPE_GET_PLAYER_IS_ONLINE |
static MessageType |
MSG_TYPE_GUILD_CLAIM_PERMISSION |
static MessageType |
MSG_TYPE_GUILD_COMMAND |
static MessageType |
MSG_TYPE_INVITE_RESPONSE |
Modifier | Constructor and Description |
---|---|
protected |
GuildClient() |
Modifier and Type | Method and Description |
---|---|
static void |
createGuild(OID oid,
java.lang.String guildName)
Sends the createGuildMessage which will create a new guild if one with
the given name doesn't exist.
|
static int |
getGuildClaimPermition(OID oid,
int guildId) |
static boolean |
getPlayerIsOnline(OID oid)
Sends the getPlayerIsOnlineMessage which will attempt to get a players oid from their name.
|
static void |
guildCommand(OID oid,
java.lang.String commandType,
java.io.Serializable data,
java.io.Serializable dataTwo)
Sends the guildCommandMessage which will deal with the given command appropriately.
|
public static final MessageType MSG_TYPE_GET_PLAYER_IS_ONLINE
public static final MessageType MSG_TYPE_CREATE_GUILD
public static final MessageType MSG_TYPE_INVITE_RESPONSE
public static final MessageType MSG_TYPE_GUILD_COMMAND
public static final MessageType MSG_TYPE_GUILD_CLAIM_PERMISSION
public static void createGuild(OID oid, java.lang.String guildName)
oid:
- the identifier of the player who wishes to create the guildguildName:
- the name of the new guild to be createdpublic static boolean getPlayerIsOnline(OID oid) throws java.io.IOException
java.io.IOException
public static void guildCommand(OID oid, java.lang.String commandType, java.io.Serializable data, java.io.Serializable dataTwo)
oid:
- the identifier of the player who sent the commandcommandType:
- the type of commanddata:
- some data to assist with execution of the commanddataTwo:
- another piece of data to assist with execution of the command0public static int getGuildClaimPermition(OID oid, int guildId)