mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
remove err tip...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
ebf4d99e72
commit
e87cfc9a6b
@ -662,8 +662,9 @@ public class ContainerShop implements Shop {
|
|||||||
try {
|
try {
|
||||||
plugin.getDB().execute(q, this.getOwner(), Util.serialize(this.getItem()), unlimited, shopType.toID(), this.getPrice(), x, y, z, world);
|
plugin.getDB().execute(q, this.getOwner(), Util.serialize(this.getItem()), unlimited, shopType.toID(), this.getPrice(), x, y, z, world);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
|
plugin.getLogger().warning("无法保存商店到数据库!!!");
|
||||||
|
plugin.getLogger().warning("错误信息: " + e.getMessage());
|
||||||
e.printStackTrace();
|
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 {
|
try {
|
||||||
this.item = shop.getLocation().getWorld().dropItem(dispLoc, this.iStack);
|
this.item = shop.getLocation().getWorld().dropItem(dispLoc, this.iStack);
|
||||||
this.item.setVelocity(new Vector(0, 0.1, 0));
|
this.item.setVelocity(new Vector(0, 0.1, 0));
|
||||||
|
NMS.safeGuard(this.item);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
}
|
}
|
||||||
if (QuickShop.debug) {
|
if (QuickShop.debug) {
|
||||||
System.out.println("Spawned item. Safeguarding.");
|
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?");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user