mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-27 09:42:26 +01:00
fix: remove associated metadata when logging into a new server (#397)
This commit is contained in:
parent
a5fac45a66
commit
ad82d59021
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user