Fix TpsCommand and update look
Dieser Commit ist enthalten in:
Ursprung
4869e36ba2
Commit
f6a3fbd22e
@ -30,21 +30,25 @@ import org.bukkit.entity.Player;
|
||||
@Linked(LinkageType.COMMAND)
|
||||
public class TpsCommand extends SWCommand {
|
||||
|
||||
protected TpsCommand() {
|
||||
public TpsCommand() {
|
||||
super("tps");
|
||||
unregister();
|
||||
register();
|
||||
}
|
||||
|
||||
@Register(help = true)
|
||||
public void genericCommand(Player p, String... args) {
|
||||
p.sendMessage(ColorConfig.BASE + "TPS:");
|
||||
p.sendMessage(ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_SECOND) + ColorConfig.OTHER + ", " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.TEN_SECONDS) + ColorConfig.OTHER + ", " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_MINUTE));
|
||||
p.sendMessage(ColorConfig.BASE + "TPS: 1s 10s 1m 5m 10m");
|
||||
p.sendMessage(" " +
|
||||
ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_SECOND) + ColorConfig.OTHER + " " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.TEN_SECONDS) + ColorConfig.OTHER + " " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_MINUTE) + ColorConfig.OTHER + " " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.FIVE_MINUTES) + ColorConfig.OTHER + " " +
|
||||
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.TEN_MINUTES) + ColorConfig.OTHER + " ");
|
||||
}
|
||||
|
||||
@Register
|
||||
public void genericCommand(Player p, TPSWatcher.TPSType type) {
|
||||
p.sendMessage(ColorConfig.BASE + "TPS:");
|
||||
p.sendMessage(ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(type));
|
||||
p.sendMessage(ColorConfig.BASE + "TPS: " + ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(type));
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren