ChorusLimiter: reset player after eating chorus

This commit is contained in:
Erik Bročko 2018-09-14 20:49:25 +02:00
parent 755a0b81aa
commit 8c454aa63e

View File

@ -21,10 +21,11 @@ public class ChorusLimiter extends Feature {
long left = chorusCooldown.timeLeftSeconds(e.getPlayer()); long left = chorusCooldown.timeLeftSeconds(e.getPlayer());
if (left > 0) { if (left > 0) {
BountifulAPI.sendActionBar(e.getPlayer(), ChatColor.RED + "Musis pockat jeste " + left + " sekund pro pouziti Chrois Fruitu!"); BountifulAPI.sendActionBar(e.getPlayer(), ChatColor.RED + "Musis pockat jeste " + left + " sekund pro pouziti Chorus Fruitu!");
e.setCancelled(true); e.setCancelled(true);
return; return;
} }
chorusCooldown.resetPlayer(e.getPlayer());
} }
} }