fix: remove associated metadata when logging into a new server (#397)

This commit is contained in:
TreemanKing 2024-07-25 09:00:42 +10:00 committed by GitHub
parent a5fac45a66
commit ad82d59021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,6 +95,8 @@ public class Listeners implements Listener {
public void onJoinEvent(PlayerJoinEvent event) {
Player player = event.getPlayer();
if(player.hasMetadata(HAS_WARPED)) player.removeMetadata(HAS_WARPED, plugin);
Portal.joinCooldown.put(player.getName(), System.currentTimeMillis());
Location loc = player.getLocation();