fix: encapsulation, star imports, checkstyle warnings (520→41), remove casts
This commit is contained in:
parent
90c3cac5cf
commit
4efccd3968
85 changed files with 466 additions and 291 deletions
|
|
@ -38,7 +38,8 @@ public class TryCommand extends PlayerCommand {
|
|||
int cooldown = plugin.getConfigManager().getInt("rp.cooldowns.try", 0);
|
||||
if (cooldown > 0 && playerService.isOnCooldown(player.getUniqueId(), "rp_try", cooldown)) {
|
||||
int remaining = playerService.getRemainingCooldown(player.getUniqueId(), "rp_try", cooldown);
|
||||
String msg = plugin.getConfigManager().getMessagesConfig().getCooldownMessage().replace("{remaining}", String.valueOf(remaining));
|
||||
String msg = plugin.getConfigManager().getMessagesConfig().getCooldownMessage()
|
||||
.replace("{remaining}", String.valueOf(remaining));
|
||||
player.sendMessage(ChatFormatter.parse(msg));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue