mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-25 02:28:54 +00:00
修复PlayerInteractEvent错误参数导致GuiShopManager的报错...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
764f8a8446
commit
9669c6cc8e
3
pom.xml
3
pom.xml
@ -54,8 +54,9 @@
|
||||
</build>
|
||||
<properties>
|
||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
||||
<env.BUILD_NUMBER>DEBUG</env.BUILD_NUMBER>
|
||||
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
|
||||
<update.description>&a全新版本 &c虚拟悬浮物(橙子提供 对 就是那个汉化COI的逗比) &e7老板修复逗比BUG...</update.description>
|
||||
<update.changes>&c修复PlayerInteractEvent错误参数导致GuiShopManager的报错...</update.changes>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<repositories>
|
||||
|
@ -59,12 +59,16 @@ public class ShopManager {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* 修复其他插件调用产生的报错... */
|
||||
try {
|
||||
final PlayerInteractEvent pie = new PlayerInteractEvent(p, Action.RIGHT_CLICK_BLOCK, new ItemStack(Material.AIR), b, bf); // PIE = PlayerInteractEvent - What else?
|
||||
Bukkit.getPluginManager().callEvent(pie);
|
||||
pie.getPlayer().closeInventory(); // If the player has chat open, this will close their chat.
|
||||
if (pie.isCancelled()) {
|
||||
return false;
|
||||
}
|
||||
} catch (final Exception e) {
|
||||
}
|
||||
final ShopPreCreateEvent spce = new ShopPreCreateEvent(p, b.getLocation());
|
||||
Bukkit.getPluginManager().callEvent(spce);
|
||||
if (spce.isCancelled()) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: ${project.artifactId}
|
||||
description: ${project.description}
|
||||
main: ${project.groupId}.${project.artifactId}.${project.artifactId}
|
||||
version: ${project.version}-Build#${env.BUILD_NUMBER}
|
||||
version: ${project.version}-git-${env.GIT_COMMIT}
|
||||
authors:
|
||||
- Netherfoam
|
||||
- Timtower
|
||||
|
Loading…
Reference in New Issue
Block a user