Implemented the ability to add a reason while muting a

player. The form of the mute is /mute [Player] [Time] [Reason] or /mute
[Player] [Reason] or /mute [Player] [Time] or /mute [Player]. These are
the various forms of the mute command and acts exactly like the old
command just with a reason.

The final adjustments to the MuteReason
This commit is contained in:
CreedTheFreak 2017-09-03 21:13:00 -07:00
commit f8ea7f5e1f
26 changed files with 76 additions and 36 deletions

View file

@ -517,12 +517,18 @@ public abstract class UserData extends PlayerExtension implements IConf {
}
public String getMuteReason() {
return muteReason;
if (muteReason != null) {
return muteReason;
}
else {
return "";
}
}
public void setMuteReason (String reason) {
if (reason.equals("")) {
config.removeProperty ("muteReason");
muteReason = null;
} else {
muteReason = reason;
config.setProperty ("muteReason", reason);