Skip to content

Commit

Permalink
fix: time is shown correctly now
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jan 1, 2025
1 parent 5c56fe8 commit 915f65d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

group = "org.allaymc.serverinfo"
description = "Show some information through scoreboard"
version = "1.2.1"
version = "1.2.2"

java {
toolchain {
Expand All @@ -22,7 +22,7 @@ repositories {
}

dependencies {
compileOnly(group = "org.allaymc.allay", name = "api", version = "2234afdda7")
compileOnly(group = "org.allaymc.allay", name = "api", version = "0.1.2")
compileOnly(group = "org.projectlombok", name = "lombok", version = "1.18.34")

annotationProcessor(group = "org.projectlombok", name = "lombok", version = "1.18.34")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/allaymc/serverinfo/ServerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void updateScoreboard(EntityPlayer player, Scoreboard scoreboard) {
if (SETTINGS.showWorldInfo()) {
// World info
var worldInfo = "World: §a" + player.getWorld().getWorldData().getDisplayName() + "\n§f" +
"Time: §a" + player.getWorld().getWorldData().getDisplayName() + "\n§f" +
"Time: §a" + player.getWorld().getWorldData().getTimeOfDay() + "\n§f" +
"TPS: §a" + MathUtils.round(player.getWorld().getTPS(), 2) + "\n§f" +
"MSPT: §a" + MathUtils.round(player.getWorld().getMSPT(), 2);
lines.add(worldInfo);
Expand Down

0 comments on commit 915f65d

Please sign in to comment.