mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix errors when reload and owner offline
Former-commit-id: 1c3ecd21dd10f93843e1b84ea852badefb13d930
This commit is contained in:
1 parent
d7d47005a4
commit
157cff4572
3 files changed
-9
No files matched your search
@@ -65,7 +65,6 @@ import org.maxgamer.quickshop.Watcher.ItemWatcher;
|
||||
import org.maxgamer.quickshop.Watcher.LogWatcher;
|
||||
|
||||
import com.onarandombox.MultiverseCore.MultiverseCore;
|
||||
import com.onarandombox.MultiverseCore.api.MultiversePlugin;
|
||||
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
|
||||
@@ -169,12 +169,6 @@ public class ShopManager {
|
||||
ShopChunk shopChunk = new ShopChunk(world, x, z);
|
||||
HashMap<Location, Shop> inChunk = inWorld.get(shopChunk);
|
||||
// That chunk data hasn't been created yet - Create it!
|
||||
BlockBreakEvent be = new BlockBreakEvent(shop.getLocation().getBlock(),Bukkit.getPlayer(shop.getOwner()));
|
||||
Bukkit.getPluginManager().callEvent(be);
|
||||
if (be.isCancelled()) {
|
||||
be.getPlayer().sendMessage(MsgUtil.getMessage("no-permission"));
|
||||
return;
|
||||
}
|
||||
if (inChunk == null) {
|
||||
inChunk = new HashMap<Location, Shop>(1);
|
||||
// Put it in the world
|
||||
|
||||
@@ -26,8 +26,6 @@ import org.bukkit.potion.PotionEffectType;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
import net.minecraft.server.v1_13_R1.DataWatcher.Item;
|
||||
|
||||
public class MsgUtil {
|
||||
static QuickShop plugin = QuickShop.instance;
|
||||
private static YamlConfiguration messages;
|
||||
|
||||
Reference in new issue
Block a user