mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-06 19:18:05 +01:00
[build] caught even more stragglers still using the player name for read/writes to data.yml
This commit is contained in:
parent
8cbf7e553f
commit
992e683087
@ -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.
|
@ -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
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user