mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
[trunk] word spacing on mute / tempban
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1322 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
79c0ef69c4
commit
96a1bdedc8
2 changed files with 2 additions and 2 deletions
|
@ -29,6 +29,6 @@ public class Commandmute extends EssentialsCommand
|
|||
}
|
||||
p.setMuteTimeout(muteTimestamp);
|
||||
charge(sender);
|
||||
sender.sendMessage("Player " + p.getDisplayName() + " " + (p.toggleMuted() ? "muted" : "unmuted") + (muteTimestamp > 0 ? " for" + Util.formatDateDiff(muteTimestamp) : "") + ".");
|
||||
sender.sendMessage("Player " + p.getDisplayName() + " " + (p.toggleMuted() ? "muted" : "unmuted") + (muteTimestamp > 0 ? " for " + Util.formatDateDiff(muteTimestamp) : "") + ".");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class Commandtempban extends EssentialsCommand
|
|||
long banTimestamp = Util.parseDateDiff(time, true);
|
||||
|
||||
p = ess.getUser(server.matchPlayer(args[0]).get(0));
|
||||
String banReason = "Temporary banned from server for " + Util.formatDateDiff(banTimestamp);
|
||||
String banReason = "Temporarily banned from server for " + Util.formatDateDiff(banTimestamp);
|
||||
p.setBanReason(banReason);
|
||||
p.setBanTimeout(banTimestamp);
|
||||
p.kickPlayer(banReason);
|
||||
|
|
Loading…
Reference in a new issue