SteamWar/SpigotCore
Archiviert
13
0

Fix build
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-02-23 17:01:12 +01:00
Ursprung 26f267cc28
Commit 1fbc3c8835

Datei anzeigen

@ -35,10 +35,7 @@ public class PlayerJoinedEvent implements Listener{
@EventHandler(priority = EventPriority.LOWEST)
private void onJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
if(!Statement.productionDatabase()) {
SteamwarUser.createOrUpdateUsername(player.getUniqueId(), player.getName());
}
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
SteamwarUser user = Statement.productionDatabase() ? SteamwarUser.get(player.getUniqueId()) : SteamwarUser.getOrCreate(player.getUniqueId(), player.getName(), uuid -> {}, (oldName, newName) -> {});
if(user.getUserGroup() != UserGroup.Member) {
UserGroup group = user.getUserGroup();