mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-30 12:01:22 +01:00
Sync
This commit is contained in:
parent
87d52d43b5
commit
d4a75f1fe8
@ -103,6 +103,7 @@ public class give implements Cmd {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user