Skip to content

Commit

Permalink
fix: missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Jul 9, 2023
1 parent d739704 commit f049539
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ private static void teleport(
Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) return;
ATPlayer atPlayer = ATPlayer.getPlayer(fromPlayer);
int warmUp = atPlayer.getWarmUp();
int warmUp = atPlayer.getWarmUp(type);
Player payingPlayer = type.equalsIgnoreCase("tpahere") ? toPlayer : fromPlayer;
if (warmUp > 0 && !fromPlayer.hasPermission("at.admin.bypass.timer")) {
MovementManager.createMovementTimer(fromPlayer, toLocation, type, "Teleport.eventTeleport", warmUp, payingPlayer);
Expand Down

0 comments on commit f049539

Please sign in to comment.