AntiCommandTab
- 46.7K
- Bukkit Plugins
Prevent users from tab completing and revealing hidden commands
- 46.7K
- January 1, 2014
AntiCommandTab
- 46.7K
- Bukkit Plugins
Prevent users from tab completing and revealing hidden commands
- 46.7K
- January 1, 2014
IrcApi irc = new IrcApi();
Or if you want to create another. You can simple just do this.
No limits.
IrcApi irc1 = new IrcApi("BotName");
Then you can easily use
irc.connect(ServerIp);
etc.
Its recommended you do this first however
irc.setName(MyName);
Else your bot will attempt to join the server as "PircBot"
All the API functions for PircBot are there.
The API docoments for using PircBot.
http://www.jibble.org/javadocs/pircbot/index.html
If a event is missing or needs extending, Don't try to use the native PircBot way to get your events.
You will have to modify the API itself to fire the events or ask me to add them.
Try not to link to PircBot itself as quite frankly instead of using the previous connection I'm fairly sure you will be making a new IRC client.
And it would be far better to use the PircBot API instead of my API if you plan to use your own IRC stuff.
Source is included inside the file.
Currently the Bukkit Events inside it are not all the events it can do. But its the majority of the ones you need.
This also features automatic coloring and formatting switching between IRC and MC.
To install this on your server just drag and drop into your plugins folder
Then hook your plugins into it.
A few IrcApi events
IrcApi irc = new IrcApi();
IrcApi irc1 = new IrcApi("lib");
public void onEnable() {
//register events
irc.setName("KingKong");
irc1.setName("library");
irc.connect("irc.myserver.com");
irc1.connect("irc.myserver.com");
irc.joinChannel("#AChannel");
irc1.joinChannel("#AChannel")
irc.sendMessage("#AChannel", "KingKong has entered the building!");
irc1.sendMessage("#AChannel", "This API is awesome KingKong!");
irc.sendMessage("libraryaddict", "Im private messaging you library!");
}
@EventHandler
public void onChat(IRCMessageEvent event) {
Bukkit.broadcastMessage("<" + event.getNick() + "> " + event.getMessage()); //Just broadcasted what they said as if they were ingame.
}
I apologize for the bad formatting however I am not used to this.
Bukkit dev's formatting is very strange to me.
If someone would like to help me or setup the page for me.
I would be very thankful.
Prevent users from tab completing and revealing hidden commands
Prevent users from tab completing and revealing hidden commands