Dieser Commit ist enthalten in:
Ursprung
26f267cc28
Commit
1fbc3c8835
@ -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();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren