- Fix chat spy.
This commit is contained in:
ElgarL authored and Andre LeBlanc committed 2013-01-11 01:20:25 -05:00
1 parent ccecd056fa
commit d997c909ab
5 files changed
+44 -16

No files matched your search

@@ -129,15 +129,8 @@ public class Chat extends JavaPlugin {
*/
test = pm.getPlugin("CraftIRC");
if (test != null) {
try {
if (Double.valueOf(test.getDescription().getVersion()) >= 3.1) {
craftIRC = (CraftIRC) test;
irc = new CraftIRCHandler(this, craftIRC, "towny");
} else
getLogger().warning("TownyChat requires CraftIRC version 3.1 or higher to relay chat.");
} catch (NumberFormatException e) {
getLogger().warning("Non number format found for craftIRC version string!");
}
craftIRC = (CraftIRC) test;
irc = new CraftIRCHandler(this, craftIRC, "towny");
}
/**