mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2025-10-02 12:37:27 +00:00
@ -662,8 +662,9 @@ public class ContainerShop implements Shop {
|
||||
try {
|
||||
plugin.getDB().execute(q, this.getOwner(), Util.serialize(this.getItem()), unlimited, shopType.toID(), this.getPrice(), x, y, z, world);
|
||||
} catch (final Exception e) {
|
||||
plugin.getLogger().warning("无法保存商店到数据库!!!");
|
||||
plugin.getLogger().warning("错误信息: " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
System.out.println("Could not update shop in database! Changes will revert after a reboot!");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -113,15 +113,11 @@ public class DisplayItem {
|
||||
try {
|
||||
this.item = shop.getLocation().getWorld().dropItem(dispLoc, this.iStack);
|
||||
this.item.setVelocity(new Vector(0, 0.1, 0));
|
||||
NMS.safeGuard(this.item);
|
||||
} catch (final Exception e) {
|
||||
}
|
||||
if (QuickShop.debug) {
|
||||
System.out.println("Spawned item. Safeguarding.");
|
||||
}
|
||||
try {
|
||||
NMS.safeGuard(this.item);
|
||||
} catch (final Exception e) {
|
||||
System.out.println("QuickShop version mismatch! This version of QuickShop is incompatible with this version of bukkit! Try update?");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user