Skip to content

Commit

Permalink
Fixed NPE caused when global cooldowns were applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Nov 22, 2020
1 parent 7be7370 commit f966e12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ATRunnable(UUID uuid, long waitingTime, String command) {
if (Config.isApplyingTimerToCooldown() && !Bukkit.getPlayer(uuid).hasPermission("at.admin.bypass.timer")) {
ms += Config.getTeleportTimer(command);
}
this.command = command;
this.command = getKey(command);
startingTime = System.currentTimeMillis();
runTaskLater(CoreClass.getInstance());
}
Expand Down

0 comments on commit f966e12

Please sign in to comment.