This commit is contained in:
ZockerKatze
2025-04-28 10:12:56 +02:00
parent fef27e973e
commit 782a731e1c
11 changed files with 92 additions and 2 deletions

View File

@@ -0,0 +1,72 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.discord</groupId>
<artifactId>discord</artifactId>
<name>discord</name>
<version>1.0-SNAPSHOT</version>
<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<defaultGoal>clean package</defaultGoal>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<jvmTarget>${java.version}</jvmTarget>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.version>2.2.0-Beta1</kotlin.version>
<java.version>21</java.version>
</properties>
</project>

View File

@@ -37,7 +37,7 @@ class Discord : JavaPlugin() {
if (sender is Player) {
sender.sendMessage("${ChatColor.GREEN}Join our Discord server: ${ChatColor.BLUE}${ChatColor.UNDERLINE}$discordLink")
} else {
sender.sendMessage("Join our Discord server: $discordLink")
sender.sendMessage("Tritt unsern Discord-Server bei: $discordLink")
}
return true
}

View File

@@ -1 +1 @@
discord-link: "discordlink.here"
discord-link: "https://discord.gg/rgNPnRD6wt"

Binary file not shown.

View File

@@ -0,0 +1 @@
discord-link: "https://discord.gg/rgNPnRD6wt"

Binary file not shown.

14
target/classes/plugin.yml Normal file
View File

@@ -0,0 +1,14 @@
name: discord
version: 1.0-SNAPSHOT
main: org.discord.discord.Discord
api-version: 1.21
description: A simple plugin to display Discord server link
commands:
discord:
description: Displays the Discord server link
usage: /discord
permission: discord.use
permissions:
discord.use:
description: Allows users to use the /discord command
default: true

Binary file not shown.

View File

@@ -0,0 +1,3 @@
artifactId=discord
groupId=org.discord
version=1.0-SNAPSHOT

Binary file not shown.