7 Commits
1.0 ... 1.4

4 changed files with 1086 additions and 878 deletions

169
pom.xml
View File

@@ -1,75 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
<groupId>de.m-viper</groupId> <groupId>de.m-viper</groupId>
<artifactId>PlayerStatusSign-reloaded</artifactId> <artifactId>PlayerStatusSign-reloaded</artifactId>
<version>1.2</version> <version>1.4</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>PlayerStatusSign</name> <name>PlayerStatusSign</name>
<properties> <properties>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>
<repository> <repository>
<id>spigot-repo</id> <id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> </repository>
</repositories> </repositories>
<dependencies> <dependencies>
<dependency> <!-- Spigot API -->
<groupId>org.spigotmc</groupId> <dependency>
<artifactId>spigot-api</artifactId> <groupId>org.spigotmc</groupId>
<version>1.21.5-R0.1-SNAPSHOT</version> <artifactId>spigot-api</artifactId>
<scope>provided</scope> <version>1.21.5-R0.1-SNAPSHOT</version>
</dependency> <scope>provided</scope>
</dependencies> </dependency>
<build> <!-- bStats Bukkit -->
<plugins> <dependency>
<plugin> <groupId>org.bstats</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>bstats-bukkit</artifactId>
<artifactId>maven-compiler-plugin</artifactId> <version>3.0.2</version>
<version>3.8.1</version> <scope>compile</scope>
<configuration> </dependency>
<source>17</source> </dependencies>
<target>17</target>
</configuration> <build>
</plugin> <plugins>
<plugin> <!-- Compiler Plugin -->
<groupId>org.apache.maven.plugins</groupId> <plugin>
<artifactId>maven-shade-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>3.2.4</version> <artifactId>maven-compiler-plugin</artifactId>
<executions> <version>3.8.1</version>
<execution> <configuration>
<phase>package</phase> <source>17</source>
<goals> <target>17</target>
<goal>shade</goal> </configuration>
</goals> </plugin>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom> <!-- Shade Plugin mit Relocation von bStats -->
</configuration> <plugin>
</execution> <groupId>org.apache.maven.plugins</groupId>
</executions> <artifactId>maven-shade-plugin</artifactId>
</plugin> <version>3.3.0</version>
</plugins> <executions>
<resources> <execution>
<resource> <phase>package</phase>
<directory>src/main/resources</directory> <goals>
<filtering>true</filtering> <goal>shade</goal>
<includes> </goals>
<include>plugin.yml</include> <configuration>
<include>config.yml</include> <createDependencyReducedPom>false</createDependencyReducedPom>
</includes> <relocations>
</resource> <relocation>
</resources> <pattern>org.bstats</pattern>
</build> <shadedPattern>de.m.viper.shaded.bstats</shadedPattern>
</project> </relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>plugin.yml</include>
<include>config.yml</include>
</includes>
</resource>
</resources>
</build>
</project>

File diff suppressed because it is too large Load Diff

View File

@@ -1,34 +1,34 @@
version: 1.0.6 version: 1.2
prefix: Status prefix: Status
colors: colors:
online: "&a" # Grün online: "&a" # Grün
afk: "&e" # Gelb afk: "&e" # Gelb
offline: "&c" # Rot offline: "&c" # Rot
player: "&9" # Blau player: "&9" # Blau
date-format: "dd.MM.yyyy HH:mm" date-format: "dd.MM.yyyy HH:mm"
afk-timeout-seconds: 300 # 5 Minuten afk-timeout-seconds: 300 # 5 Minuten
afk-change-gamemode: true # Gamemode zu Adventure bei AFK afk-change-gamemode: true # Gamemode zu Adventure bei AFK
messages: messages:
player-only: "&cDieser Befehl kann nur von Spielern verwendet werden!" player-only: "&cDieser Befehl kann nur von Spielern verwendet werden!"
no-permission-use: "&cDu hast keine Berechtigung, Statistiken anzuzeigen!" no-permission-use: "&cDu hast keine Berechtigung, Statistiken anzuzeigen!"
no-permission-admin: "&cDu hast keine Berechtigung, Status-Schilder zu erstellen oder Status-Befehle auszuführen!" no-permission-admin: "&cDu hast keine Berechtigung, Status-Schilder zu erstellen oder Status-Befehle auszuführen!"
no-permission-break-sign: "&cDu hast keine Berechtigung, Status-Schilder abzubauen!" no-permission-break-sign: "&cDu hast keine Berechtigung, Status-Schilder abzubauen!"
break-sign-sneak: "&cDu musst die Shift-Taste halten, um das Schild abzubauen!" break-sign-sneak: "&cDu musst die Shift-Taste halten, um das Schild abzubauen!"
reload-success: "&aPlugin erfolgreich neu geladen." reload-success: "&aPlugin erfolgreich neu geladen."
unknown-subcommand: "&cUnbekannter Subbefehl! Nutze /statussign help." unknown-subcommand: "&cUnbekannter Subbefehl! Nutze /statussign help."
invalid-player: "&cUngültiger Spielername!" invalid-player: "&cUngültiger Spielername!"
sign-created: "&aStatus-Scope für %player% erfolgreich gesetzt!" sign-created: "&aStatus-Scope für %player% erfolgreich gesetzt!"
sign-removed: "&aStatus-Scope für %player% entfernt!" sign-removed: "&aStatus-Scope für %player% entfernt!"
sign-error: "&cFehler beim Verarbeiten des Schildes!" sign-error: "&cFehler beim Verarbeiten des Schildes!"
gui-error: "&cFehler beim Öffnen der Statistik-GUI!" gui-error: "&cFehler beim Öffnen der Statistik-GUI!"
afk-enabled: "&eDu bist jetzt AFK!" afk-enabled: "&eDu bist jetzt AFK!"
afk-disabled: "&aDu bist nicht mehr AFK!" afk-disabled: "&aDu bist nicht mehr AFK!"
status-offline-enabled: "&cDu erscheinst jetzt als offline!" status-offline-enabled: "&cDu erscheinst jetzt als offline!"
status-offline-disabled: "&aDu erscheinst jetzt als online!" status-offline-disabled: "&aDu erscheinst jetzt als online!"
cannot-afk-while-offline: "&cDu kannst nicht AFK sein, während du als offline angezeigt wirst!" cannot-afk-while-offline: "&cDu kannst nicht AFK sein, während du als offline angezeigt wirst!"
status-online: "&a%player% ist online!" status-online: "&a%player% ist online!"
status-afk: "&e%player% ist AFK!" status-afk: "&e%player% ist AFK!"
status-offline: "&c%player% ist offline. Zuletzt online: %date%" status-offline: "&c%player% ist offline. Zuletzt online: %date%"
help-title: "&6===== PlayerStatusSign Hilfe =====" help-title: "&6===== PlayerStatusSign Hilfe ====="
help-reload: "&e/statussign reload &7- Lädt die Konfiguration neu (Admin)" help-reload: "&e/statussign reload &7- Lädt die Konfiguration neu (Admin)"
help-help: "&e/statussign help &7- Zeigt diese Hilfe" help-help: "&e/statussign help &7- Zeigt diese Hilfe"

View File

@@ -1,34 +1,34 @@
name: PlayerStatusSign name: PlayerStatusSign
main: PlayerStatusSign main: PlayerStatusSign
version: 1.0.6 version: 1.4
author: M_Viper author: M_Viper
api-version: 1.21 api-version: 1.21
description: Zeigt Spielerstatus (online, AFK, offline) auf Schildern und erlaubt GUI-Statistikanzeige. description: Zeigt Spielerstatus (online, AFK, offline) auf Schildern und erlaubt GUI-Statistikanzeige.
commands: commands:
statussign: statussign:
description: Hauptbefehl für PlayerStatusSign description: Hauptbefehl für PlayerStatusSign
usage: /statussign [reload|help] usage: /statussign [reload|help]
permission: statussign.admin permission: statussign.admin
permission-message: §cDu hast keine Berechtigung für diesen Befehl. permission-message: §cDu hast keine Berechtigung für diesen Befehl.
statusafk: statusafk:
description: Setzt oder entfernt deinen AFK-Status description: Setzt oder entfernt deinen AFK-Status
usage: /statusafk usage: /statusafk
permission: statussign.admin permission: statussign.admin
permission-message: §cDu hast keine Berechtigung für diesen Befehl. permission-message: §cDu hast keine Berechtigung für diesen Befehl.
statusoffline: statusoffline:
description: Wechsle in den Fake-Offline-Status description: Wechsle in den Fake-Offline-Status
usage: /statusoffline usage: /statusoffline
permission: statussign.admin permission: statussign.admin
permission-message: §cDu hast keine Berechtigung für diesen Befehl. permission-message: §cDu hast keine Berechtigung für diesen Befehl.
statusonline: statusonline:
description: Kehre vom Fake-Offline-Status zurück description: Kehre vom Fake-Offline-Status zurück
usage: /statusonline usage: /statusonline
permission: statussign.admin permission: statussign.admin
permission-message: §cDu hast keine Berechtigung für diesen Befehl. permission-message: §cDu hast keine Berechtigung für diesen Befehl.
permissions: permissions:
statussign.admin: statussign.admin:
description: Erlaubt Admin-Befehle und Schild-Interaktionen description: Erlaubt Admin-Befehle und Schild-Interaktionen
default: op default: op
statussign.use: statussign.use:
description: Erlaubt Benutzung der Schilder zum Öffnen der GUI description: Erlaubt Benutzung der Schilder zum Öffnen der GUI
default: true default: true