mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-10 18:38:18 +01:00
Fixed easy style issues.
This commit is contained in:
parent
fcda6c3b3b
commit
6f7af90488
@ -81,7 +81,7 @@ public class EssentialsPlayerListener implements Listener {
|
||||
if (user.isMuted()) {
|
||||
event.setCancelled(true);
|
||||
|
||||
if (user.getMuteReason ().equals ("")) {
|
||||
if (user.getMuteReason().equals ("")) {
|
||||
user.sendMessage(tl("voiceSilenced"));
|
||||
}
|
||||
else {
|
||||
|
@ -525,7 +525,7 @@ public abstract class UserData extends PlayerExtension implements IConf {
|
||||
}
|
||||
}
|
||||
|
||||
public void setMuteReason (String reason) {
|
||||
public void setMuteReason(String reason) {
|
||||
if (reason.equals("")) {
|
||||
config.removeProperty ("muteReason");
|
||||
muteReason = null;
|
||||
|
@ -82,8 +82,7 @@ public class Commandmute extends EssentialsCommand {
|
||||
if (user.getMuteReason ().equals ("")) {
|
||||
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime));
|
||||
user.sendMessage(tl("playerMutedFor", muteTime));
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime) + tl("muteFormat",user.getMuteReason()));
|
||||
user.sendMessage(tl("playerMutedFor", muteTime) + tl("muteFormat",user.getMuteReason()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user