mirror of
				https://e.coding.net/circlecloud/QuickShop.git
				synced 2025-11-03 17:56:41 +00:00 
			
		
		
		
	修复PlayerInteractEvent错误参数导致GuiShopManager的报错...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
		
							
								
								
									
										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,11 +59,15 @@ public class ShopManager {
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        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;
 | 
			
		||||
        /* 修复其他插件调用产生的报错... */
 | 
			
		||||
        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);
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user