Skip to content

Commit

Permalink
Fix tpsbar and membar
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHua269 committed Dec 15, 2024
1 parent c713459 commit 38e4a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions patches/server/0008-Add-a-simple-tpsbar.patch
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ index 0000000000000000000000000000000000000000..aafb2f5052c7c8e5971a47308253badb
+}
diff --git a/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java b/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java
new file mode 100644
index 0000000000000000000000000000000000000000..ff503ab69dce8f034500e64ce31556d721395732
index 0000000000000000000000000000000000000000..de2f03d6e771c09e8da2da454b7ec4a16c0a17ab
--- /dev/null
+++ b/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java
@@ -0,0 +1,214 @@
Expand Down Expand Up @@ -243,7 +243,7 @@ index 0000000000000000000000000000000000000000..ff503ab69dce8f034500e64ce31556d7
+ if (removed != null) {
+ apiPlayer.hideBossBar(removed);
+ }
+ }, 0, TpsBarConfig.updateInterval);
+ }, 1, TpsBarConfig.updateInterval);
+ }
+
+ private static void updateTpsBar(double tps, double mspt, @NotNull BossBar bar, @NotNull Player player){
Expand Down
4 changes: 2 additions & 2 deletions patches/server/0009-Add-a-simple-membar.patch
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ index 0000000000000000000000000000000000000000..b632c4a636974535bf001f010de1dcb6
+}
diff --git a/src/main/java/me/earthme/luminol/functions/GlobalServerMemoryBar.java b/src/main/java/me/earthme/luminol/functions/GlobalServerMemoryBar.java
new file mode 100644
index 0000000000000000000000000000000000000000..4827562a5b4deca0153995b8e1680d820123a712
index 0000000000000000000000000000000000000000..3535cf03e7855b4d8b312ccf3a7b0564ea753019
--- /dev/null
+++ b/src/main/java/me/earthme/luminol/functions/GlobalServerMemoryBar.java
@@ -0,0 +1,171 @@
Expand Down Expand Up @@ -240,7 +240,7 @@ index 0000000000000000000000000000000000000000..4827562a5b4deca0153995b8e1680d82
+ if (removed != null) {
+ apiPlayer.hideBossBar(removed);
+ }
+ }, 0, MembarConfig.updateInterval);
+ }, 1, MembarConfig.updateInterval);
+ }
+
+ private static void updateMembar(@NotNull BossBar bar, long used, long xmx){
Expand Down

0 comments on commit 38e4a96

Please sign in to comment.