198
									
								
								plugin/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										198
									
								
								plugin/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,198 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <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"> | ||||
|     <parent> | ||||
|         <artifactId>LibsDisguises</artifactId> | ||||
|         <groupId>LibsDisguises</groupId> | ||||
|         <version>10.0.26-SNAPSHOT</version> | ||||
|     </parent> | ||||
|     <modelVersion>4.0.0</modelVersion> | ||||
|  | ||||
|     <artifactId>plugin</artifactId> | ||||
|  | ||||
|     <build> | ||||
|         <defaultGoal>exec:java clean install</defaultGoal> | ||||
|         <finalName>LibsDisguises</finalName> | ||||
|  | ||||
|         <resources> | ||||
|             <resource> | ||||
|                 <directory>src/main/resources</directory> | ||||
|                 <filtering>true</filtering> | ||||
|                 <includes> | ||||
|                     <include>plugin.yml</include> | ||||
|                 </includes> | ||||
|             </resource> | ||||
|             <resource> | ||||
|                 <directory>src/main/resources</directory> | ||||
|                 <filtering>false</filtering> | ||||
|                 <includes> | ||||
|                     <include>**/*</include> | ||||
|                 </includes> | ||||
|             </resource> | ||||
|             <resource> | ||||
|                 <directory>${project.basedir}</directory> | ||||
|                 <includes> | ||||
|                     <include>README.md</include> | ||||
|                 </includes> | ||||
|             </resource> | ||||
|         </resources> | ||||
|         <plugins> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-jar-plugin</artifactId> | ||||
|                 <version>2.3.1</version> | ||||
|                 <configuration> | ||||
|                     <outputDirectory>../target</outputDirectory> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <artifactId>maven-surefire-plugin</artifactId> | ||||
|                 <version>3.0.0-M5</version> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.codehaus.mojo</groupId> | ||||
|                 <artifactId>exec-maven-plugin</artifactId> | ||||
|                 <version>3.0.0</version> | ||||
|  | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <id>my-execution</id> | ||||
|                         <phase>compile</phase> | ||||
|                         <goals> | ||||
|                             <goal>java</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|                 <configuration> | ||||
|                     <includePluginDependencies>true</includePluginDependencies> | ||||
|                     <mainClass>me.libraryaddict.disguise.utilities.watchers.CompileMethods</mainClass> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-shade-plugin</artifactId> | ||||
|                 <version>3.2.4</version> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <phase>package</phase> | ||||
|                         <goals> | ||||
|                             <goal>shade</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|                 <configuration> | ||||
|                     <minimizeJar>true</minimizeJar> | ||||
|                     <filters> | ||||
|                         <filter> | ||||
|                             <artifact>LibsDisguises:*</artifact> | ||||
|                             <includes> | ||||
|                                 <include>**</include> | ||||
|                             </includes> | ||||
|                         </filter> | ||||
|                     </filters> | ||||
|                     <artifactSet> | ||||
|                         <includes> | ||||
|                             <include>net.kyori:*</include> | ||||
|                             <include>LibsDisguises:*</include> | ||||
|                         </includes> | ||||
|                     </artifactSet> | ||||
|                     <relocations> | ||||
|                         <relocation> | ||||
|                             <pattern>net.kyori</pattern> | ||||
|                             <shadedPattern>ld-shaded.net.kyori</shadedPattern> | ||||
|                         </relocation> | ||||
|                     </relocations> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|         </plugins> | ||||
|     </build> | ||||
|  | ||||
|     <dependencies> | ||||
|         <dependency> | ||||
|             <groupId>org.projectlombok</groupId> | ||||
|             <artifactId>lombok</artifactId> | ||||
|             <version>${lombok.version}</version> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.comphenix.protocol</groupId> | ||||
|             <artifactId>ProtocolLib</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.spigotmc</groupId> | ||||
|             <artifactId>spigot-api</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.spigotmc</groupId> | ||||
|             <artifactId>spigot</artifactId> | ||||
|         </dependency> | ||||
|         <!-- testing --> | ||||
|         <dependency> | ||||
|             <groupId>junit</groupId> | ||||
|             <artifactId>junit</artifactId> | ||||
|             <version>${junit.version}</version> | ||||
|             <scope>test</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.destroystokyo.paper</groupId> | ||||
|             <artifactId>paper-api</artifactId> | ||||
|             <version>${paper-api.version}</version> | ||||
|             <scope>provided</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>net.md-5</groupId> | ||||
|             <artifactId>bungeecord-chat</artifactId> | ||||
|             <version>${bungeecord-chat.version}</version> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>net.kyori</groupId> | ||||
|             <artifactId>adventure-text-minimessage</artifactId> | ||||
|             <version>${adventure-minimessage.version}</version> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>net.kyori</groupId> | ||||
|             <artifactId>adventure-text-serializer-gson</artifactId> | ||||
|             <version>${adventure-serializer.version}</version> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>net.kyori</groupId> | ||||
|             <artifactId>adventure-api</artifactId> | ||||
|             <version>${adventure-api.version}</version> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <!--NMS Packages--> | ||||
|         <dependency> | ||||
|             <groupId>LibsDisguises</groupId> | ||||
|             <artifactId>shared</artifactId> | ||||
|             <version>${project.version}</version> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>LibsDisguises</groupId> | ||||
|             <artifactId>v1_18_R1</artifactId> | ||||
|             <version>${project.version}</version> | ||||
|             <classifier>remapped-spigot</classifier> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>LibsDisguises</groupId> | ||||
|             <artifactId>v1_17_R1</artifactId> | ||||
|             <version>${project.version}</version> | ||||
|             <classifier>remapped-spigot</classifier> | ||||
|             <scope>compile</scope> | ||||
|             <optional>true</optional> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|  | ||||
| </project> | ||||
| @@ -24,6 +24,7 @@ import me.libraryaddict.disguise.utilities.listeners.PaperDisguiseListener; | ||||
| import me.libraryaddict.disguise.utilities.listeners.PlayerSkinHandler; | ||||
| import me.libraryaddict.disguise.utilities.metrics.MetricsInitalizer; | ||||
| import me.libraryaddict.disguise.utilities.packets.PacketsManager; | ||||
| import me.libraryaddict.disguise.utilities.params.ParamInfoManager; | ||||
| import me.libraryaddict.disguise.utilities.parser.DisguiseParser; | ||||
| import me.libraryaddict.disguise.utilities.reflection.NmsVersion; | ||||
| import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; | ||||
| @@ -83,8 +84,8 @@ public class LibsDisguises extends JavaPlugin { | ||||
|                         getLogger().severe("Please restart the server to complete the ProtocolLib update!"); | ||||
|                     } | ||||
|                 } catch (Exception e) { | ||||
|                     getLogger() | ||||
|                             .severe("Looks like ProtocolLib's site may be down! MythicCraft/MythicMobs has a discord server https://discord.gg/EErRhJ4qgx you" + | ||||
|                     getLogger().severe( | ||||
|                             "Looks like ProtocolLib's site may be down! MythicCraft/MythicMobs has a discord server https://discord.gg/EErRhJ4qgx you" + | ||||
|                                     " can " + "join. Check the pins in #libs-support for a ProtocolLib.jar you can download!"); | ||||
|                     e.printStackTrace(); | ||||
|                 } | ||||
| @@ -164,8 +165,8 @@ public class LibsDisguises extends JavaPlugin { | ||||
|             LibsPremium.check(getDescription().getVersion(), getFile()); | ||||
| 
 | ||||
|             if (!LibsPremium.isPremium()) { | ||||
|                 getLogger() | ||||
|                         .info("You are running the free version, commands limited to non-players and operators. (Console," + " Command " + "Blocks, Admins)"); | ||||
|                 getLogger().info( | ||||
|                         "You are running the free version, commands limited to non-players and operators. (Console," + " Command " + "Blocks, Admins)"); | ||||
|             } | ||||
| 
 | ||||
|             if (ReflectionManager.getVersion() == null) { | ||||
| @@ -185,8 +186,9 @@ public class LibsDisguises extends JavaPlugin { | ||||
|                     @Override | ||||
|                     public void run() { | ||||
|                         getLogger().severe("!! May I have your attention please !!"); | ||||
|                         getLogger().severe("Update your ProtocolLib! You are running " + version + " but the minimum version you should be on is " + | ||||
|                                 requiredProtocolLib + "!"); | ||||
|                         getLogger().severe( | ||||
|                                 "Update your ProtocolLib! You are running " + version + " but the minimum version you should be on is " + requiredProtocolLib + | ||||
|                                         "!"); | ||||
|                         getLogger().severe("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target" + "/ProtocolLib" + ".jar"); | ||||
|                         getLogger().severe("Or! Use /ld protocollib - To update to the latest development build"); | ||||
| 
 | ||||
| @@ -218,9 +220,11 @@ public class LibsDisguises extends JavaPlugin { | ||||
|             PacketsManager.init(); | ||||
|             DisguiseUtilities.init(); | ||||
| 
 | ||||
|             new SoundManager().load(); | ||||
| 
 | ||||
|             ReflectionManager.registerValues(); | ||||
| 
 | ||||
|             new SoundManager().load(); | ||||
|             ParamInfoManager.getParamInfoSoundGroup().recalculate(); | ||||
| 
 | ||||
|             DisguiseConfig.loadConfig(); | ||||
| 
 | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user