- Katılım
- 7 Şubat 2023
- Mesajlar
- 533
- Elmaslar
- 169
- Puan
- 5.680
- Konum
- Alaska, United States
- Minecraft
- Mashe1337
Discord:
mashe1337
mashe1337
mashe1337
Ücretsiz olursa daha iyi olur şimdilik bunu alacak bütçeye sahip değilim.Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
notpatch
mashe1337
Nasıl kullanacağım bilmiyorum videosu v.s. var mı? Minecraft için ne yapmalıyım v.s.kullanabilirsin hem ücretsiz sürümü var hemde spigot platformu bazen bunu onaylayabiliyor.Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
notpatch
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.notpatch</groupId>
<artifactId>nMines</artifactId>
<version>1.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>NMines</name>
<properties>
<java.version>16</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>fr.mrmicky.fastinv</pattern>
<shadedPattern>com.notpatch.fastinv</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.notpatch.nMines</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<id>obfuscate</id>
<configuration>
<tasks>
<property
name="project.jar"
value="${project.build.directory}/${project.build.finalName}.jar"/>
<property
name="project.jar.unobf"
value="${project.build.directory}/${project.build.finalName}_unobf.jar"/>
<move
file="${project.jar}"
tofile="${project.jar.unobf}"
verbose="true"/>
<property
name="runtime_classpath"
refid="maven.runtime.classpath"/>
<taskdef
name="yguard"
classname="com.yworks.yguard.YGuardTask"
classpath="${runtime_classpath}"/>
<yguard>
<inoutpair in="${project.jar.unobf}" out="${project.jar}" />
<rename logfile="${project.build.directory}/${project.build.finalName}_renamelog.xml">
<!-- Preserve the main class name -->
<keep>
<class name="com.notpatch.nMines.NMines" />
</keep>
</rename>
</yguard>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>codemc-releases</id>
<url>https://repo.codemc.io/repository/maven-releases/</url>
</repository>
<repository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>sk89q-repo</id>
<url>https://maven.enginehub.org/repo/</url>
</repository>
<repository>
<id>oraxen</id>
<name>Oraxen Repository</name>
<url>https://repo.oraxen.com/releases</url>
</repository>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.retrooper</groupId>
<artifactId>packetevents-spigot</artifactId>
<version>2.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-bukkit</artifactId>
<version>7.0.12</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.LoneDev6</groupId>
<artifactId>api-itemsadder</artifactId>
<version>3.6.2-beta-r3-b</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>4.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yworks</groupId>
<artifactId>annotation</artifactId>
<version>4.1.1</version>
</dependency>
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>FastInv</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>io.th0rgal</groupId>
<artifactId>oraxen</artifactId>
<version>1.185.0</version>
<exclusions>
<exclusion>
<groupId>me.gabytm.util</groupId>
<artifactId>actions-spigot</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.ticxo</groupId>
<artifactId>PlayerAnimator</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<artifactId>IF</artifactId>
</exclusion>
<exclusion>
<groupId>io.th0rgal</groupId>
<artifactId>protectionlib</artifactId>
</exclusion>
<exclusion>
<groupId>dev.triumphteam</groupId>
<artifactId>triumph-gui</artifactId>
</exclusion>
<exclusion>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
</exclusion>
<exclusion>
<groupId>com.jeff-media</groupId>
<artifactId>custom-block-data</artifactId>
</exclusion>
<exclusion>
<groupId>com.jeff-media</groupId>
<artifactId>persistent-data-serializer</artifactId>
</exclusion>
<exclusion>
<groupId>com.jeff_media</groupId>
<artifactId>MorePersistentDataTypes</artifactId>
</exclusion>
<exclusion>
<groupId>gs.mclo</groupId>
<artifactId>java</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
mashe1337
Çok teşekkür ederim işe yaradı :).Örnek olarak pom.xml dosyamı atıyorum kendine göre düzenlersin. Ben uğraşmamak için main classımı keepliyorum sen saklamak istersen buildledikten sonra bi zip açıcı ile main classını bulup plugin.yml dosyandaki main kısmını düzenlersin.
XML:<?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"> <modelVersion>4.0.0</modelVersion> <groupId>com.notpatch</groupId> <artifactId>nMines</artifactId> <version>1.5.1-SNAPSHOT</version> <packaging>jar</packaging> <name>NMines</name> <properties> <java.version>16</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <defaultGoal>clean package</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.13.0</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.5.3</version> <configuration> <minimizeJar>true</minimizeJar> <relocations> <relocation> <pattern>fr.mrmicky.fastinv</pattern> <shadedPattern>com.notpatch.fastinv</shadedPattern> </relocation> <relocation> <pattern>org.bstats</pattern> <shadedPattern>com.notpatch.nMines</shadedPattern> </relocation> </relocations> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> <id>obfuscate</id> <configuration> <tasks> <property name="project.jar" value="${project.build.directory}/${project.build.finalName}.jar"/> <property name="project.jar.unobf" value="${project.build.directory}/${project.build.finalName}_unobf.jar"/> <move file="${project.jar}" tofile="${project.jar.unobf}" verbose="true"/> <property name="runtime_classpath" refid="maven.runtime.classpath"/> <taskdef name="yguard" classname="com.yworks.yguard.YGuardTask" classpath="${runtime_classpath}"/> <yguard> <inoutpair in="${project.jar.unobf}" out="${project.jar}" /> <rename logfile="${project.build.directory}/${project.build.finalName}_renamelog.xml"> <!-- Preserve the main class name --> <keep> <class name="com.notpatch.nMines.NMines" /> </keep> </rename> </yguard> </tasks> </configuration> </execution> </executions> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </build> <repositories> <repository> <id>spigotmc-repo</id> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> </repository> <repository> <id>sonatype</id> <url>https://oss.sonatype.org/content/groups/public/</url> </repository> <repository> <id>codemc-releases</id> <url>https://repo.codemc.io/repository/maven-releases/</url> </repository> <repository> <id>codemc-snapshots</id> <url>https://repo.codemc.io/repository/maven-snapshots/</url> </repository> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> <repository> <id>sk89q-repo</id> <url>https://maven.enginehub.org/repo/</url> </repository> <repository> <id>oraxen</id> <name>Oraxen Repository</name> <url>https://repo.oraxen.com/releases</url> </repository> <repository> <id>placeholderapi</id> <url>https://repo.extendedclip.com/releases/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>1.21-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot</artifactId> <version>1.16.5-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.github.retrooper</groupId> <artifactId>packetevents-spigot</artifactId> <version>2.7.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.github.MilkBowl</groupId> <artifactId>VaultAPI</artifactId> <version>1.7</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.sk89q.worldguard</groupId> <artifactId>worldguard-bukkit</artifactId> <version>7.0.12</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.github.LoneDev6</groupId> <artifactId>api-itemsadder</artifactId> <version>3.6.2-beta-r3-b</version> <scope>provided</scope> </dependency> <dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>2.11.6</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.bstats</groupId> <artifactId>bstats-bukkit</artifactId> <version>3.0.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.yworks</groupId> <artifactId>yguard</artifactId> <version>4.1.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.yworks</groupId> <artifactId>annotation</artifactId> <version>4.1.1</version> </dependency> <dependency> <groupId>fr.mrmicky</groupId> <artifactId>FastInv</artifactId> <version>3.0.4</version> </dependency> <dependency> <groupId>io.th0rgal</groupId> <artifactId>oraxen</artifactId> <version>1.185.0</version> <exclusions> <exclusion> <groupId>me.gabytm.util</groupId> <artifactId>actions-spigot</artifactId> </exclusion> <exclusion> <groupId>org.jetbrains</groupId> <artifactId>annotations</artifactId> </exclusion> <exclusion> <groupId>com.ticxo</groupId> <artifactId>PlayerAnimator</artifactId> </exclusion> <exclusion> <groupId>com.github.stefvanschie.inventoryframework</groupId> <artifactId>IF</artifactId> </exclusion> <exclusion> <groupId>io.th0rgal</groupId> <artifactId>protectionlib</artifactId> </exclusion> <exclusion> <groupId>dev.triumphteam</groupId> <artifactId>triumph-gui</artifactId> </exclusion> <exclusion> <groupId>org.bstats</groupId> <artifactId>bstats-bukkit</artifactId> </exclusion> <exclusion> <groupId>com.jeff-media</groupId> <artifactId>custom-block-data</artifactId> </exclusion> <exclusion> <groupId>com.jeff-media</groupId> <artifactId>persistent-data-serializer</artifactId> </exclusion> <exclusion> <groupId>com.jeff_media</groupId> <artifactId>MorePersistentDataTypes</artifactId> </exclusion> <exclusion> <groupId>gs.mclo</groupId> <artifactId>java</artifactId> </exclusion> </exclusions> <scope>provided</scope> </dependency> </dependencies> </project>
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!