mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-05 06:28:56 +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
+5
-3
No files matched your search
@@ -88,3 +88,4 @@ v0.16:
|
||||
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 craftIRC hook to not spam console with an invalid number format error if the wrong version is detected.
|
||||
@@ -36,6 +36,7 @@ public class CraftIRCHandler extends BasePoint implements CommandEndPoint {
|
||||
this.plugin = plugin;
|
||||
this.irc = irc;
|
||||
// Register this as the tags endpoint
|
||||
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