mirror of
https://github.com/kaboomserver/extras.git
synced 2025-07-23 22:13:58 +00:00
Set maximum line length to 100 characters
This commit is contained in:
parent
78067effe2
commit
67220510b1
29 changed files with 130 additions and 69 deletions
|
@ -14,13 +14,15 @@ public final class CommandUsername implements CommandExecutor {
|
|||
private long millis;
|
||||
|
||||
@Override
|
||||
public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
|
||||
public boolean onCommand(final CommandSender sender, final Command command, final String label,
|
||||
final String[] args) {
|
||||
if (sender instanceof ConsoleCommandSender) {
|
||||
sender.sendMessage("Command has to be run by a player");
|
||||
} else {
|
||||
final Player player = (Player) sender;
|
||||
|
||||
final String nameColor = ChatColor.translateAlternateColorCodes('&', String.join(" ", args));
|
||||
final String nameColor = ChatColor.translateAlternateColorCodes(
|
||||
'&', String.join(" ", args));
|
||||
final String name = nameColor.substring(0, Math.min(16, nameColor.length()));
|
||||
|
||||
final long millisDifference = System.currentTimeMillis() - millis;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue