Adding tps to bauinfo
Dieser Commit ist enthalten in:
Ursprung
2090cfbd62
Commit
4861cb3b4b
@ -4,6 +4,7 @@ import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.sql.Bauwelt;
|
||||
import de.steamwar.bausystem.sql.BauweltMember;
|
||||
import de.warking.hunjy.MySQL.WarkingUser;
|
||||
import net.minecraft.server.v1_12_R1.MinecraftServer;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@ -29,6 +30,14 @@ public class CommandInfo implements CommandExecutor {
|
||||
membermessage.append(member.isWorld() ? "§a" : "§c").append("W").append("§8]").append(" ");
|
||||
}
|
||||
sender.sendMessage(membermessage.toString());
|
||||
|
||||
|
||||
double[] tps = MinecraftServer.getServer().recentTps;
|
||||
StringBuilder tpsmessage = new StringBuilder().append(BauSystem.PREFIX).append("TPS:§e");
|
||||
for(double t : tps){
|
||||
tpsmessage.append(String.format(" %.1f", t));
|
||||
}
|
||||
sender.sendMessage(tpsmessage.toString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren