mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 10:35:15 +01:00
There is not ShopCheck class
This commit is contained in:
parent
f096e8eefd
commit
58cd316aa9
@ -1,9 +1,9 @@
|
||||
package com.Acrobot.ChestShop.Plugins;
|
||||
|
||||
import com.Acrobot.Breeze.Utils.BlockUtil;
|
||||
import com.Acrobot.ChestShop.Containers.ShopChest;
|
||||
import com.Acrobot.ChestShop.Events.Protection.ProtectionCheckEvent;
|
||||
import com.Acrobot.ChestShop.Signs.ChestShopSign;
|
||||
import com.Acrobot.ChestShop.Utils.uBlock;
|
||||
import com.Acrobot.ChestShop.Utils.uName;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
@ -50,9 +50,7 @@ public class ChestShop implements Listener {
|
||||
}
|
||||
|
||||
if (isChest(block)) {
|
||||
ShopChest chest = new ShopChest((Chest) block.getState());
|
||||
|
||||
Sign sign = chest.findShopSign();
|
||||
Sign sign = uBlock.getConnectedSign((Chest) block.getState());
|
||||
|
||||
if (sign != null && !isShopMember(player, sign)) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user