[build] caught even more stragglers still using the player name for read/writes to data.yml

This commit is contained in:
Ryder Belserion 2024-06-18 00:51:51 -04:00
parent 8cbf7e553f
commit 992e683087
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -1,2 +1,2 @@
### Changes:
- Only update the data.yml if the value is not a uuid
### Fixed:
- Caught a few places still using the player name for reading or writing to the data.yml which breaks the uuid checks.

View File

@ -7,7 +7,7 @@ plugins {
val buildNumber: String? = System.getenv("BUILD_NUMBER")
rootProject.version = if (buildNumber != null) "1.4.4-$buildNumber" else "1.4.4"
rootProject.version = if (buildNumber != null) "1.4.5-$buildNumber" else "1.4.5"
val isSnapshot = false

View File

@ -955,7 +955,7 @@ public class GuiListener implements Listener {
final Runnable runnable = () -> inv.setItem(slot, item);
if (data.getString("Items." + i + ".Seller").equalsIgnoreCase(player.getName())) {
if (data.getString("Items." + i + ".Seller").equalsIgnoreCase(player.getUniqueId().toString())) {
String itemName = config.getString("Settings.GUISettings.OtherSettings.Your-Item.Item");
String name = config.getString("Settings.GUISettings.OtherSettings.Your-Item.Name");
@ -990,7 +990,7 @@ public class GuiListener implements Listener {
}
if (data.getBoolean("Items." + i + ".Biddable")) {
if (player.getName().equalsIgnoreCase(data.getString("Items." + i + ".TopBidder"))) {
if (player.getUniqueId().toString().equalsIgnoreCase(data.getString("Items." + i + ".TopBidder"))) {
String itemName = config.getString("Settings.GUISettings.OtherSettings.Top-Bidder.Item");
String name = config.getString("Settings.GUISettings.OtherSettings.Top-Bidder.Name");