Sitemizi ana ekranınıza bir web uygulaması olarak nasıl yükleyeceğinizi görmek için aşağıdaki videoyu izleyin.
Not: this_feature_currently_requires_accessing_site_using_safari
package me.tr3x;
import org.bukkit.plugin.java.JavaPlugin;
public final class Main extends JavaPlugin {
@Override
public void onEnable() {
}
@Override
public void onDisable() {
}
}
name: plugin
version: '${project.version}'
main: me.tr3x.Main
api-version: '1.12.2'
<?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>me.tr3x</groupId>
<artifactId>plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>plugin</name>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</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.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</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>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
<3 yardım gerekirse söyleSağ ol
oluyorda intellj idea daha hawli geliyoreclipse oluyor mu?
comminity edition ücretsizücretsiz mi peki
kanka olmuyoöncelikle intellj idea indiriyoruz sonra maven projesi oluşturuyoruz ondan sonra "src.main.java" package'inin içine birtane main class oluşturuyorsun benimki mesela "me.tr3x.Main" sonra o klasörün içine gidip allta verdiğim kodu yazıyoruz:
Java:package me.tr3x; import org.bukkit.plugin.java.JavaPlugin; public final class Main extends JavaPlugin { @Override public void onEnable() { } @Override public void onDisable() { } }
ondan sınra "src.main.resources" in içine birtane "plugin.yml" oluşturuyoruz orayada allta verdiğim kodu yazıyoruz
Kod:name: plugin version: '${project.version}' main: me.tr3x.Main api-version: '1.12.2'
ve son olarak "pom.xlm"'in içine gidip allta verdiğim kodu yazıyoruz
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>me.tr3x</groupId> <artifactId>plugin</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>plugin</name> <properties> <java.version>1.8</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</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.2.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </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> </repositories> <dependencies> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>1.19.2-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> </project>
intellj ideada plugin var bitane onuda kullanabilirsin ben yeni farkettim o pluginikanka olmuyo
pom.xmli doğru yaptığından eminmisinextends JavaPlugin bunda hata alıyorum
Bu sitenin çalışması için temel çerezleri ve deneyiminizi geliştirmek için isteğe bağlı çerezleri kullanıyoruz.