|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.plugin.java.JavaPlugin
org.monstercraft.irc.IRC
org.monstercraft.irc.handlers.IRCHandler
public class IRCHandler
This handles all of the IRC related stuff.
| Constructor Summary | |
|---|---|
IRCHandler(IRC plugin)
Creates an instance of the IRCHandler class. |
|
| Method Summary | |
|---|---|
void |
ban(java.lang.String Nick,
java.lang.String channel)
Bans a user from the IRC channel if the bot is OP. |
void |
changeNick(java.lang.String Nick)
Changes the nickname of the IRC bot. |
boolean |
connect(java.lang.String channel,
java.lang.String server,
int port,
java.lang.String user,
java.lang.String nick,
java.lang.String password,
boolean identify)
Connects to an IRC server then a channel. |
boolean |
disconnect(java.lang.String channel)
Disconnects a user from the IRC server. |
java.util.List<java.lang.String> |
getOpList()
Fetches the list of Operaters in the current IRC channel. |
java.util.List<java.lang.String> |
getVoiceList()
Fetches the list of Voices in the current IRC channel. |
boolean |
isConnected()
Checks if the user is connected to an IRC server. |
boolean |
isOp(java.lang.String sender,
java.util.List<java.lang.String> opList)
Checks if a user is OP in the IRC. |
boolean |
isVoice(java.lang.String sender,
java.util.List<java.lang.String> voiceList)
Checks if a user is Voice in the IRC. |
void |
join(java.lang.String channel)
Joins an IRC channel on that server. |
void |
leave(java.lang.String channel)
Quits a channel in the IRC |
java.lang.String |
removeColors(java.lang.String msg)
Removes colors from a string of text. |
void |
sendMessage(java.lang.String Message,
java.lang.String channel)
Sends a message to the specified channel. |
| Methods inherited from class org.monstercraft.irc.IRC |
|---|
getCommandManager, getHandleManager, getHookManager, getSettings, onCommand, onDisable, onEnable |
| Methods inherited from class org.bukkit.plugin.java.JavaPlugin |
|---|
getCommand, getConfig, getConfiguration, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getPluginLoader, getResource, getServer, isEnabled, isInitialized, isNaggable, onLoad, reloadConfig, saveConfig, setNaggable, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IRCHandler(IRC plugin)
plugin - The parent plugin.| Method Detail |
|---|
public boolean connect(java.lang.String channel,
java.lang.String server,
int port,
java.lang.String user,
java.lang.String nick,
java.lang.String password,
boolean identify)
channel - The channel to connect to.server - The server to connec to.port - The port to use.user - The username.nick - The nick name.password - The password when identifing.identify - Weither the user wants to identify with nickserv.
public boolean disconnect(java.lang.String channel)
channel - The channel to disconenct from, if any.
public boolean isConnected()
public void join(java.lang.String channel)
channel - The channel to join.
public void leave(java.lang.String channel)
throws java.io.IOException
channel - The channel to leave.
java.io.IOException
public void sendMessage(java.lang.String Message,
java.lang.String channel)
Message - The message to send.channel - The channel to send the message to.public void changeNick(java.lang.String Nick)
Nick - The name to change to.
public void ban(java.lang.String Nick,
java.lang.String channel)
Nick - The user to ban.channel - The channel to ban in.
public boolean isOp(java.lang.String sender,
java.util.List<java.lang.String> opList)
sender - The name to check.opList - The list to check in.
public boolean isVoice(java.lang.String sender,
java.util.List<java.lang.String> voiceList)
sender - The name to check.voiceList - The list to check in.
public java.util.List<java.lang.String> getOpList()
public java.util.List<java.lang.String> getVoiceList()
public java.lang.String removeColors(java.lang.String msg)
msg - The string to remove the colors from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||