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