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