1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-30 12:01:22 +01:00
This commit is contained in:
Zrips 2023-08-29 12:39:41 +03:00
parent 87d52d43b5
commit d4a75f1fe8
2 changed files with 2 additions and 2 deletions

View File

@ -103,6 +103,7 @@ public class give implements Cmd {
default:
break;
}
return true;
}
}

View File

@ -4,7 +4,6 @@ import java.util.HashMap;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
@ -107,7 +106,7 @@ public class BlockProtectionManager {
// If timer is under 2 hours, we can run scheduler to remove it when time comes
if (time > -1 && (time - System.currentTimeMillis()) / 1000 < 60 * 60 * 2)
Bp.setScheduler(CMIScheduler.get().runTaskLater(() -> {
Bp.setScheduler(CMIScheduler.get().runAtLocationLater(loc, () -> {
remove(loc);
}, (time - System.currentTimeMillis()) / 50));