mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Fixed easy style issues.
This commit is contained in:
parent
081c6f0263
commit
574e1bc1e7
3 changed files with 3 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -521,7 +521,7 @@ public abstract class UserData extends PlayerExtension implements IConf {
|
|||
return muteReason;
|
||||
}
|
||||
|
||||
public void setMuteReason (String reason) {
|
||||
public void setMuteReason(String reason) {
|
||||
if (reason.equals("")) {
|
||||
config.removeProperty ("muteReason");
|
||||
} else {
|
||||
|
|
|
@ -71,8 +71,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 a new issue