mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-19 11:31:19 +01:00
Use more exact shop detection with /shopinfo
This commit is contained in:
parent
63f68d5444
commit
df2e4394c4
@ -19,7 +19,7 @@ import org.bukkit.entity.Player;
|
||||
public class ShopInfo implements CommandExecutor {
|
||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
Block target = ((Player) sender).getTargetBlock(5);
|
||||
Block target = ((Player) sender).getTargetBlockExact(5);
|
||||
if (target != null) {
|
||||
Sign sign = null;
|
||||
if (ChestShopSign.isValid(target)) {
|
||||
|
Loading…
Reference in New Issue
Block a user