mirror of
				https://e.coding.net/circlecloud/Yum.git
				synced 2025-11-04 05:06:02 +00:00 
			
		
		
		
	
							
								
								
									
										129
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										129
									
								
								pom.xml
									
									
									
									
									
								
							@@ -1,64 +1,65 @@
 | 
				
			|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
					<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
				
			||||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
					         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
				
			||||||
    <modelVersion>4.0.0</modelVersion>
 | 
					    <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <artifactId>Yum</artifactId>
 | 
					    <artifactId>Yum</artifactId>
 | 
				
			||||||
    <version>2.8.0</version>
 | 
					    <version>2.8.1</version>
 | 
				
			||||||
    <packaging>jar</packaging>
 | 
					    <packaging>jar</packaging>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <description>Minecraft 服务器插件管理系统</description>
 | 
					    <description>Minecraft 服务器插件管理系统</description>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>pw.yumc</groupId>
 | 
					        <groupId>pw.yumc</groupId>
 | 
				
			||||||
        <artifactId>minecraft-plugin-parent</artifactId>
 | 
					        <artifactId>minecraft-plugin-parent</artifactId>
 | 
				
			||||||
        <version>1.0</version>
 | 
					        <version>1.0</version>
 | 
				
			||||||
        <relativePath/>
 | 
					        <relativePath/>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
        <update.description>§a补丁包 2.8 版本</update.description>
 | 
					        <update.description>§a补丁包 2.8.1 版本</update.description>
 | 
				
			||||||
        <update.changes>
 | 
					        <update.changes>
 | 
				
			||||||
            §619-02-23 §cfix: 修复不兼容 1.13 的问题;
 | 
					            §619-08-26 §cfix: 修复不兼容 1.14.4 的问题;
 | 
				
			||||||
        </update.changes>
 | 
					            §619-02-23 §cfix: 修复不兼容 1.13 的问题;
 | 
				
			||||||
        <update.changelog>
 | 
					        </update.changes>
 | 
				
			||||||
            §617-07-29 §cfix: 修复不兼容 1.12 的问题;
 | 
					        <update.changelog>
 | 
				
			||||||
            §6- §cfix: §7修复仓库数据读取错误的问题;
 | 
					            §617-07-29 §cfix: 修复不兼容 1.12 的问题;
 | 
				
			||||||
            §6- §cfix: §7修复一个tab补全产生的错误
 | 
					            §6- §cfix: §7修复仓库数据读取错误的问题;
 | 
				
			||||||
            §6- §btip: §a本插件最后一次更新 2.7.8 版本;
 | 
					            §6- §cfix: §7修复一个tab补全产生的错误
 | 
				
			||||||
            §6- §afeat: §7线程中断只显示一次调试信息;
 | 
					            §6- §btip: §a本插件最后一次更新 2.7.8 版本;
 | 
				
			||||||
            §6- §afeat: §7更新线程检查 添加调试;
 | 
					            §6- §afeat: §7线程中断只显示一次调试信息;
 | 
				
			||||||
            §6- §afeat: §7修改显示前缀;
 | 
					            §6- §afeat: §7更新线程检查 添加调试;
 | 
				
			||||||
            §6- §afeat: §7更新类库版本 完善网络调试;
 | 
					            §6- §afeat: §7修改显示前缀;
 | 
				
			||||||
            §6- §drefactor: §7使用新类库;
 | 
					            §6- §afeat: §7更新类库版本 完善网络调试;
 | 
				
			||||||
            §6- §afeat: §7使用新版本API;
 | 
					            §6- §drefactor: §7使用新类库;
 | 
				
			||||||
            §6- §afeat: §7去除加载器注入 异步获取主线程;
 | 
					            §6- §afeat: §7使用新版本API;
 | 
				
			||||||
            §6- §afeat: §7添加网络状态详细错误;
 | 
					            §6- §afeat: §7去除加载器注入 异步获取主线程;
 | 
				
			||||||
            §6- §afeat: §7新增307跳转支持;
 | 
					            §6- §afeat: §7添加网络状态详细错误;
 | 
				
			||||||
            §6- §cfix: §7修复lasterror命令显示问题;
 | 
					            §6- §afeat: §7新增307跳转支持;
 | 
				
			||||||
            §6- §afeat: §7使用SimpleJson解析仓库数据;
 | 
					            §6- §cfix: §7修复lasterror命令显示问题;
 | 
				
			||||||
            §6- §afeat: §7使用新的类库处理Tellraw;
 | 
					            §6- §afeat: §7使用SimpleJson解析仓库数据;
 | 
				
			||||||
            §6- §cfix: §7当仓库未找到插件时没有提示的BUG;
 | 
					            §6- §afeat: §7使用新的类库处理Tellraw;
 | 
				
			||||||
        </update.changelog>
 | 
					            §6- §cfix: §7当仓库未找到插件时没有提示的BUG;
 | 
				
			||||||
        <env.GIT_COMMIT>DEV</env.GIT_COMMIT>
 | 
					        </update.changelog>
 | 
				
			||||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
					        <env.GIT_COMMIT>DEV</env.GIT_COMMIT>
 | 
				
			||||||
        <maven.compiler.source>1.8</maven.compiler.source>
 | 
					        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
				
			||||||
        <maven.compiler.target>1.8</maven.compiler.target>
 | 
					        <maven.compiler.source>1.8</maven.compiler.source>
 | 
				
			||||||
    </properties>
 | 
					        <maven.compiler.target>1.8</maven.compiler.target>
 | 
				
			||||||
 | 
					    </properties>
 | 
				
			||||||
    <dependencies>
 | 
					
 | 
				
			||||||
        <dependency>
 | 
					    <dependencies>
 | 
				
			||||||
            <groupId>pw.yumc</groupId>
 | 
					        <dependency>
 | 
				
			||||||
            <artifactId>BukkitInjectedTools</artifactId>
 | 
					            <groupId>pw.yumc</groupId>
 | 
				
			||||||
            <type>jar</type>
 | 
					            <artifactId>BukkitInjectedTools</artifactId>
 | 
				
			||||||
            <version>[1.1,)</version>
 | 
					            <type>jar</type>
 | 
				
			||||||
        </dependency>
 | 
					            <version>[1.1,)</version>
 | 
				
			||||||
    </dependencies>
 | 
					        </dependency>
 | 
				
			||||||
    <build>
 | 
					    </dependencies>
 | 
				
			||||||
        <plugins>
 | 
					    <build>
 | 
				
			||||||
            <plugin>
 | 
					        <plugins>
 | 
				
			||||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
					            <plugin>
 | 
				
			||||||
                <artifactId>maven-shade-plugin</artifactId>
 | 
					                <groupId>org.apache.maven.plugins</groupId>
 | 
				
			||||||
            </plugin>
 | 
					                <artifactId>maven-shade-plugin</artifactId>
 | 
				
			||||||
        </plugins>
 | 
					            </plugin>
 | 
				
			||||||
    </build>
 | 
					        </plugins>
 | 
				
			||||||
</project>
 | 
					    </build>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,83 +1,84 @@
 | 
				
			|||||||
package pw.yumc.Yum.events;
 | 
					package pw.yumc.Yum.events;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.net.URI;
 | 
					import java.net.URI;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.event.Cancellable;
 | 
					import org.bukkit.event.Cancellable;
 | 
				
			||||||
import org.bukkit.event.Event;
 | 
					import org.bukkit.event.Event;
 | 
				
			||||||
import org.bukkit.event.HandlerList;
 | 
					import org.bukkit.event.HandlerList;
 | 
				
			||||||
import org.bukkit.plugin.Plugin;
 | 
					import org.bukkit.plugin.Plugin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class PluginNetworkEvent extends Event implements Cancellable {
 | 
					public class PluginNetworkEvent extends Event implements Cancellable {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static HandlerList handlers = new HandlerList();
 | 
					    private static HandlerList handlers = new HandlerList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private boolean isPrimaryThread;
 | 
					    private boolean isPrimaryThread;
 | 
				
			||||||
    private Plugin plugin;
 | 
					    private Plugin plugin;
 | 
				
			||||||
    private boolean cancel;
 | 
					    private boolean cancel;
 | 
				
			||||||
    private URI url;
 | 
					    private URI url;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static HandlerList getHandlerList() {
 | 
					    public static HandlerList getHandlerList() {
 | 
				
			||||||
        return handlers;
 | 
					        return handlers;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 插件联网事件
 | 
					     * 插件联网事件
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param plugin
 | 
					     * @param plugin
 | 
				
			||||||
     *            插件
 | 
					     *         插件
 | 
				
			||||||
     * @param url
 | 
					     * @param url
 | 
				
			||||||
     *            地址
 | 
					     *         地址
 | 
				
			||||||
     * @param isMainThread
 | 
					     * @param isPrimaryThread
 | 
				
			||||||
     *            是否为主线程
 | 
					     *         是否为主线程
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public PluginNetworkEvent(Plugin plugin, URI url, boolean isPrimaryThread) {
 | 
					    public PluginNetworkEvent(Plugin plugin, URI url, boolean isPrimaryThread) {
 | 
				
			||||||
        this.plugin = plugin;
 | 
					        super(true);
 | 
				
			||||||
        this.url = url;
 | 
					        this.plugin = plugin;
 | 
				
			||||||
        this.isPrimaryThread = isPrimaryThread;
 | 
					        this.url = url;
 | 
				
			||||||
    }
 | 
					        this.isPrimaryThread = isPrimaryThread;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    @Override
 | 
					
 | 
				
			||||||
    public HandlerList getHandlers() {
 | 
					    @Override
 | 
				
			||||||
        return handlers;
 | 
					    public HandlerList getHandlers() {
 | 
				
			||||||
    }
 | 
					        return handlers;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    /**
 | 
					
 | 
				
			||||||
     * @return 插件
 | 
					    /**
 | 
				
			||||||
     */
 | 
					     * @return 插件
 | 
				
			||||||
    public Plugin getPlugin() {
 | 
					     */
 | 
				
			||||||
        return plugin;
 | 
					    public Plugin getPlugin() {
 | 
				
			||||||
    }
 | 
					        return plugin;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    /**
 | 
					
 | 
				
			||||||
     * @return 网址
 | 
					    /**
 | 
				
			||||||
     */
 | 
					     * @return 网址
 | 
				
			||||||
    public URI getUrl() {
 | 
					     */
 | 
				
			||||||
        return url;
 | 
					    public URI getUrl() {
 | 
				
			||||||
    }
 | 
					        return url;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    @Override
 | 
					
 | 
				
			||||||
    public boolean isCancelled() {
 | 
					    @Override
 | 
				
			||||||
        return cancel;
 | 
					    public boolean isCancelled() {
 | 
				
			||||||
    }
 | 
					        return cancel;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    /**
 | 
					
 | 
				
			||||||
     * @return 是否在主线程
 | 
					    /**
 | 
				
			||||||
     */
 | 
					     * @return 是否在主线程
 | 
				
			||||||
    public boolean isPrimaryThread() {
 | 
					     */
 | 
				
			||||||
        return isPrimaryThread;
 | 
					    public boolean isPrimaryThread() {
 | 
				
			||||||
    }
 | 
					        return isPrimaryThread;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    @Override
 | 
					
 | 
				
			||||||
    public void setCancelled(boolean value) {
 | 
					    @Override
 | 
				
			||||||
        cancel = value;
 | 
					    public void setCancelled(boolean value) {
 | 
				
			||||||
    }
 | 
					        cancel = value;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    /**
 | 
					
 | 
				
			||||||
     * @param url
 | 
					    /**
 | 
				
			||||||
     *            设置新的URL地址
 | 
					     * @param url
 | 
				
			||||||
     */
 | 
					     *         设置新的URL地址
 | 
				
			||||||
    public void setUrl(URI url) {
 | 
					     */
 | 
				
			||||||
        this.url = url;
 | 
					    public void setUrl(URI url) {
 | 
				
			||||||
    }
 | 
					        this.url = url;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user