fixed serverutils

This commit is contained in:
ImproperIssues
2023-07-06 11:25:42 -07:00
parent 7656f90530
commit 6568427499

View File

@@ -3,6 +3,7 @@ package fun.ogre.ogredupealias.utils;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import java.util.ArrayList;
@@ -58,4 +59,8 @@ public class ServerUtils {
}
});
}
public static boolean hasBlockBelow(Player p, Material type) {
return p.getLocation().clone().subtract(0, 1, 0).getBlock().getType() == type;
}
}