Remove associated Metadata when logging into a new server

This commit is contained in:
TreemanK 2023-11-08 13:54:19 +11:00
parent 24d05ff2fd
commit c7b289b9e0
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,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();