9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-25 09:59:20 +00:00

Update DebugInsightCommand.java

This commit is contained in:
XiaoMoMi
2024-09-04 19:24:08 +08:00
parent 017c935aaa
commit ee9fe05505

View File

@@ -87,7 +87,12 @@ public class DebugInsightCommand extends BukkitCommandFeature<CommandSender> {
@Override
public void run() {
Player player = Bukkit.getPlayer(uuid);
if (player == null || !player.isOnline() || !player.hasMetadata("customcrops:insight")) {
if (player == null || !player.isOnline()) {
task.cancel();
highlightCache.clear();
return;
}
if (!player.hasMetadata("customcrops:insight")) {
for (HighlightBlocks[] blocks : highlightCache.values()) {
for (HighlightBlocks block : blocks) {
block.destroy(player);