SteamWar/BauSystem2.0
Archiviert
12
0

Fix TpsCommand and update look

Dieser Commit ist enthalten in:
yoyosource 2021-05-01 11:00:28 +02:00
Ursprung 4869e36ba2
Commit f6a3fbd22e

Datei anzeigen

@ -30,21 +30,25 @@ import org.bukkit.entity.Player;
@Linked(LinkageType.COMMAND) @Linked(LinkageType.COMMAND)
public class TpsCommand extends SWCommand { public class TpsCommand extends SWCommand {
protected TpsCommand() { public TpsCommand() {
super("tps"); super("tps");
unregister();
register();
} }
@Register(help = true) @Register(help = true)
public void genericCommand(Player p, String... args) { public void genericCommand(Player p, String... args) {
p.sendMessage(ColorConfig.BASE + "TPS:"); p.sendMessage(ColorConfig.BASE + "TPS: 1s 10s 1m 5m 10m");
p.sendMessage(ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_SECOND) + ColorConfig.OTHER + ", " + p.sendMessage(" " +
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.TEN_SECONDS) + ColorConfig.OTHER + ", " + ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_SECOND) + ColorConfig.OTHER + " " +
ColorConfig.HIGHLIGHT + TPSWarpUtils.getTps(TPSWatcher.TPSType.ONE_MINUTE)); 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 @Register
public void genericCommand(Player p, TPSWatcher.TPSType type) { public void genericCommand(Player p, TPSWatcher.TPSType type) {
p.sendMessage(ColorConfig.BASE + "TPS:"); p.sendMessage(ColorConfig.BASE + "TPS: " + ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(type));
p.sendMessage(ColorConfig.HIGHLIGHT.toString() + TPSWarpUtils.getTps(type));
} }
} }