mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 02:25:25 +01:00
Only update player name on join, don't create new accounts
This commit is contained in:
parent
0b39fd1a5e
commit
1f8fd09dd2
@ -23,12 +23,8 @@ public class PlayerConnect implements Listener {
|
||||
|
||||
final PlayerDTO playerDTO = new PlayerDTO(event.getPlayer());
|
||||
|
||||
Bukkit.getScheduler().runTaskAsynchronously(ChestShop.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// String playerName = NameUtil.stripUsername(playerDTO.getName());
|
||||
// UUID uuid = NameManager.getUUID(playerName);
|
||||
|
||||
Bukkit.getScheduler().runTaskAsynchronously(ChestShop.getPlugin(), () -> {
|
||||
if (NameManager.getAccount(playerDTO.getUniqueId()) != null) {
|
||||
NameManager.storeUsername(playerDTO);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user