mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-25 08:11:20 +01:00
Revert PlayerKick Behavior
Partial revert of 'Do not let people with already used usernames connect to the server' commit. See comments hereb0369d8e69 (commitcomment-14185778)
and here.c169df2265 (commitcomment-12846919)
I personally believe ChestShops should not dictate whether a player is allowed to connect to the server or not. I personally have had issues with ChestShops kicking legitimate players from the server in online mode.
This commit is contained in:
parent
17eb698e28
commit
8c7594be51
@ -27,18 +27,6 @@ public class PlayerConnect implements Listener {
|
||||
String playerName = NameUtil.stripUsername(playerDTO.getName());
|
||||
UUID uuid = NameManager.getUUID(playerName);
|
||||
|
||||
if (uuid != null && !playerDTO.getUniqueId().equals(uuid)) {
|
||||
Bukkit.getScheduler().runTask(ChestShop.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getPlayer(playerDTO.getUniqueId()).kickPlayer("[ChestShop]" +
|
||||
"Unfortunately, this username was already used by " +
|
||||
"another player.");
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
NameManager.storeUsername(playerDTO);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user