Correction spam nothing
This commit is contained in:
parent
c43340ee15
commit
a92b82e5da
@ -71,11 +71,13 @@ public abstract class SimplyPrevents implements Listener {
|
||||
long current = System.currentTimeMillis();
|
||||
|
||||
if (next.longValue() < current) {
|
||||
if (!plugin.config.getMessage(node).isEmpty()) {
|
||||
player.sendMessage(plugin.config.getMessage(node));
|
||||
plugin.debug("Event '" + node + "' cancelled for " + player.getName());
|
||||
throttleTimestamps.put(player, Long.valueOf(current + 3000));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean prevent(Cancellable event, Player player, String node) {
|
||||
if (node.contains(",")) {
|
||||
|
Loading…
Reference in New Issue
Block a user