mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01: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
@ -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 New Issue
Block a user