mirror of
https://github.com/Phoenix616/RandomTeleport.git
synced 2024-11-22 10:36:00 +01:00
Add the spawnpoint parameter to the cooldown id
This commit is contained in:
parent
f4c74a3b9b
commit
6314051571
@ -335,7 +335,7 @@ public class RandomTeleport extends JavaPlugin implements CommandExecutor {
|
||||
|
||||
//getLogger().info("Starting to read cooldown hashmap");
|
||||
|
||||
String cooldownid = player.getUniqueId().toString() + minRange + maxRange + xCenter + zCenter + cooldowntime + forceBlocks + forceRegions;
|
||||
String cooldownid = player.getUniqueId().toString() + minRange + maxRange + xCenter + zCenter + cooldowntime + forceBlocks + forceRegions + setSpawnpoint;
|
||||
if(cooldown.containsKey(cooldownid) && cooldown.get(cooldownid) + cooldowntime * 1000 > System.currentTimeMillis()) {
|
||||
|
||||
// convert seconds in dhms format
|
||||
|
Loading…
Reference in New Issue
Block a user