mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +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).
|
- spam_time now accepts smaller values (eg. 0.5).
|
||||||
v0.17:
|
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.
|
- 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.plugin = plugin;
|
||||||
this.irc = irc;
|
this.irc = irc;
|
||||||
// Register this as the tags endpoint
|
// Register this as the tags endpoint
|
||||||
irc.registerEndPoint(tag, this);
|
if (irc != null)
|
||||||
|
irc.registerEndPoint(tag, this);
|
||||||
// Second argument below is the command name
|
// Second argument below is the command name
|
||||||
//irc.registerCommand(tag, tag);
|
//irc.registerCommand(tag, tag);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ import com.palmergames.bukkit.util.ChatTools;
|
|||||||
import com.palmergames.util.StringMgmt;
|
import com.palmergames.util.StringMgmt;
|
||||||
|
|
||||||
public class TownyPlayerHighestListener implements Listener {
|
public class TownyPlayerHighestListener implements Listener {
|
||||||
private final Chat plugin;
|
private Chat plugin;
|
||||||
private final CraftIRCHandler ircHander;
|
private CraftIRCHandler ircHander;
|
||||||
private final DynmapAPI dynMap;
|
private DynmapAPI dynMap;
|
||||||
|
|
||||||
private HashMap<Player, Long> SpamTime = new HashMap<Player, Long>();
|
private HashMap<Player, Long> SpamTime = new HashMap<Player, Long>();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user