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) @EventHandler(priority = EventPriority.LOWEST)
private void onJoin(PlayerJoinEvent event) { private void onJoin(PlayerJoinEvent event) {
Player player = event.getPlayer(); Player player = event.getPlayer();
if(!Statement.productionDatabase()) { SteamwarUser user = Statement.productionDatabase() ? SteamwarUser.get(player.getUniqueId()) : SteamwarUser.getOrCreate(player.getUniqueId(), player.getName(), uuid -> {}, (oldName, newName) -> {});
SteamwarUser.createOrUpdateUsername(player.getUniqueId(), player.getName());
}
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
if(user.getUserGroup() != UserGroup.Member) { if(user.getUserGroup() != UserGroup.Member) {
UserGroup group = user.getUserGroup(); UserGroup group = user.getUserGroup();