From 8c454aa63e2642b71172827b997c419c6ba41414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bro=C4=8Dko?= Date: Fri, 14 Sep 2018 20:49:25 +0200 Subject: [PATCH] ChorusLimiter: reset player after eating chorus --- src/cz/marwland/mc/essentials/features/ChorusLimiter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cz/marwland/mc/essentials/features/ChorusLimiter.java b/src/cz/marwland/mc/essentials/features/ChorusLimiter.java index 0d72b9c..b66dd88 100644 --- a/src/cz/marwland/mc/essentials/features/ChorusLimiter.java +++ b/src/cz/marwland/mc/essentials/features/ChorusLimiter.java @@ -21,10 +21,11 @@ public class ChorusLimiter extends Feature { long left = chorusCooldown.timeLeftSeconds(e.getPlayer()); 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); return; } + chorusCooldown.resetPlayer(e.getPlayer()); } }