adding Feedback when player uses compass to often
This commit is contained in:
parent
7cf025376b
commit
bdd101114b
@ -19,6 +19,7 @@ public class ItemUseListener implements Consumer<PlayerUseItemEvent> {
|
||||
if (!p.isAllowCompassUsage()) {
|
||||
long lastUsed = (System.currentTimeMillis() - p.getLastCompassUsage()) / 1000;
|
||||
p.sendActionBar(Component.text("Du kannst den Kompass erst in " + (10 - lastUsed) + " Sekunden wieder benutzen."));
|
||||
|
||||
return;
|
||||
}
|
||||
p.update_lastCompassUsage();
|
||||
|
Reference in New Issue
Block a user