mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
v0.35:
- Fix chat spy.
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user