mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Reformat and fix Checkstyle violations
This commit is contained in:
parent
234a481b0d
commit
9b3c8a9df2
392 changed files with 5889 additions and 5862 deletions
|
@ -10,7 +10,6 @@ import org.bukkit.Server;
|
|||
|
||||
import static com.earth2me.essentials.I18n.tl;
|
||||
|
||||
|
||||
public class Commandr extends EssentialsCommand {
|
||||
public Commandr() {
|
||||
super("r");
|
||||
|
@ -23,11 +22,11 @@ public class Commandr extends EssentialsCommand {
|
|||
}
|
||||
|
||||
String message = getFinalArg(args, 0);
|
||||
IMessageRecipient messageSender;
|
||||
final IMessageRecipient messageSender;
|
||||
if (sender.isPlayer()) {
|
||||
User user = ess.getUser(sender.getPlayer());
|
||||
final User user = ess.getUser(sender.getPlayer());
|
||||
if (user.isMuted()) {
|
||||
String dateDiff = user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : null;
|
||||
final String dateDiff = user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : null;
|
||||
if (dateDiff == null) {
|
||||
throw new Exception(user.hasMuteReason() ? tl("voiceSilencedReason", user.getMuteReason()) : tl("voiceSilenced"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue