mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 03:24:31 +02: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:
@@ -29,6 +29,6 @@ public class Commandmute extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
p.setMuteTimeout(muteTimestamp);
|
p.setMuteTimeout(muteTimestamp);
|
||||||
charge(sender);
|
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);
|
long banTimestamp = Util.parseDateDiff(time, true);
|
||||||
|
|
||||||
p = ess.getUser(server.matchPlayer(args[0]).get(0));
|
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.setBanReason(banReason);
|
||||||
p.setBanTimeout(banTimestamp);
|
p.setBanTimeout(banTimestamp);
|
||||||
p.kickPlayer(banReason);
|
p.kickPlayer(banReason);
|
||||||
|
Reference in New Issue
Block a user