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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user