mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
Fix craftIRC hook to not spam console with an invalid number format
error if the wrong version is detected.
This commit is contained in:
1 parent
ac23c10f01
commit
05f74b6326
3 files changed
+7
-5
No files matched your search
+2
-1
@@ -87,4 +87,5 @@ v0.16:
|
||||
- spam_time now accepts smaller values (eg. 0.5).
|
||||
v0.17:
|
||||
- If a player has no permissions for any channel but we are still set to modify chat, remove the channelTag and msgcolour entries.
|
||||
- Fix Spam timer to work in milliseconds so values of 0.5 actually work.
|
||||
- Fix Spam timer to work in milliseconds so values of 0.5 actually work.
|
||||
- Fix craftIRC hook to not spam console with an invalid number format error if the wrong version is detected.
|
||||
@@ -36,7 +36,8 @@ public class CraftIRCHandler extends BasePoint implements CommandEndPoint {
|
||||
this.plugin = plugin;
|
||||
this.irc = irc;
|
||||
// Register this as the tags endpoint
|
||||
irc.registerEndPoint(tag, this);
|
||||
if (irc != null)
|
||||
irc.registerEndPoint(tag, this);
|
||||
// Second argument below is the command name
|
||||
//irc.registerCommand(tag, tag);
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ import com.palmergames.bukkit.util.ChatTools;
|
||||
import com.palmergames.util.StringMgmt;
|
||||
|
||||
public class TownyPlayerHighestListener implements Listener {
|
||||
private final Chat plugin;
|
||||
private final CraftIRCHandler ircHander;
|
||||
private final DynmapAPI dynMap;
|
||||
private Chat plugin;
|
||||
private CraftIRCHandler ircHander;
|
||||
private DynmapAPI dynMap;
|
||||
|
||||
private HashMap<Player, Long> SpamTime = new HashMap<Player, Long>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user