first commit
This commit is contained in:
BIN
helper/.DS_Store
vendored
Executable file
BIN
helper/.DS_Store
vendored
Executable file
Binary file not shown.
BIN
helper/._.DS_Store
Executable file
BIN
helper/._.DS_Store
Executable file
Binary file not shown.
4
helper/.vscode/settings.json
vendored
Executable file
4
helper/.vscode/settings.json
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"java.configuration.updateBuildConfiguration": "automatic",
|
||||
"java.compile.nullAnalysis.mode": "automatic"
|
||||
}
|
||||
55
helper/pom.xml
Executable file
55
helper/pom.xml
Executable file
@@ -0,0 +1,55 @@
|
||||
<?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>de.hessj.helper</groupId>
|
||||
<artifactId>helper</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>papermc</id>
|
||||
<url>https://papermc.io/repo/repository/maven-public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.papermc.paper</groupId>
|
||||
<artifactId>paper-api</artifactId>
|
||||
<version>1.20-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>mc-api</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>/mnt/janik/DOKUMENTE/Programmierung/MCServer/MCPlugins/CraftBukkit.jar</systemPath>
|
||||
<!--<systemPath>\\fileserver\Janik\DOKUMENTE\Programmierung\MCServer\MCPlugins\CraftBukkit.jar</systemPath>-->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<configuration>
|
||||
<outputDirectory>/mnt/minecrafttest/plugins</outputDirectory>
|
||||
<!--<outputDirectory>\\fileserver\MinecraftTEST\plugins</outputDirectory>-->
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
17
helper/src/main/java/de/hessj/helper/App.java
Executable file
17
helper/src/main/java/de/hessj/helper/App.java
Executable file
@@ -0,0 +1,17 @@
|
||||
package de.hessj.helper;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
|
||||
public class App extends JavaPlugin
|
||||
{
|
||||
@Override
|
||||
public void onEnable() {
|
||||
}
|
||||
@Override
|
||||
public void onDisable() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
32
helper/src/main/java/de/hessj/helper/Helper.java
Executable file
32
helper/src/main/java/de/hessj/helper/Helper.java
Executable file
@@ -0,0 +1,32 @@
|
||||
package de.hessj.helper;
|
||||
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import net.kyori.adventure.text.format.TextDecoration;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
|
||||
public class Helper {
|
||||
|
||||
public enum Type {
|
||||
ERROR,
|
||||
SUCCESS,
|
||||
INFO,
|
||||
OK
|
||||
}
|
||||
|
||||
public Component R3SMessage(Type type, String msg) {
|
||||
|
||||
switch (type) {
|
||||
case ERROR:
|
||||
return Component.text(msg).color(TextColor.fromHexString("#c0392b")).decoration(TextDecoration.ITALIC, false);
|
||||
case INFO:
|
||||
return Component.text(msg).color(TextColor.fromHexString("#3498db")).decoration(TextDecoration.ITALIC, false);
|
||||
case OK:
|
||||
return Component.text(msg).color(TextColor.fromHexString("#2ecc71")).decoration(TextDecoration.ITALIC, false);
|
||||
case SUCCESS:
|
||||
return Component.text(msg).color(TextColor.fromHexString("#2ecc71")).decoration(TextDecoration.ITALIC, false);
|
||||
}
|
||||
return Component.text(ChatColor.WHITE + msg);
|
||||
|
||||
}
|
||||
}
|
||||
4
helper/src/main/resources/plugin.yml
Executable file
4
helper/src/main/resources/plugin.yml
Executable file
@@ -0,0 +1,4 @@
|
||||
main: de.hessj.helper.App
|
||||
name: HelperPlugin
|
||||
version: 0.1
|
||||
api-version: 1.19
|
||||
BIN
helper/target/.DS_Store
vendored
Executable file
BIN
helper/target/.DS_Store
vendored
Executable file
Binary file not shown.
BIN
helper/target/._.DS_Store
Executable file
BIN
helper/target/._.DS_Store
Executable file
Binary file not shown.
BIN
helper/target/classes/de/hessj/helper/App.class
Executable file
BIN
helper/target/classes/de/hessj/helper/App.class
Executable file
Binary file not shown.
BIN
helper/target/classes/de/hessj/helper/Helper$Type.class
Executable file
BIN
helper/target/classes/de/hessj/helper/Helper$Type.class
Executable file
Binary file not shown.
BIN
helper/target/classes/de/hessj/helper/Helper.class
Executable file
BIN
helper/target/classes/de/hessj/helper/Helper.class
Executable file
Binary file not shown.
4
helper/target/classes/plugin.yml
Executable file
4
helper/target/classes/plugin.yml
Executable file
@@ -0,0 +1,4 @@
|
||||
main: de.hessj.helper.App
|
||||
name: HelperPlugin
|
||||
version: 0.1
|
||||
api-version: 1.19
|
||||
BIN
helper/target/helper-1.0-SNAPSHOT.jar
Executable file
BIN
helper/target/helper-1.0-SNAPSHOT.jar
Executable file
Binary file not shown.
5
helper/target/maven-archiver/pom.properties
Executable file
5
helper/target/maven-archiver/pom.properties
Executable file
@@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Fri Jun 09 16:52:17 CEST 2023
|
||||
groupId=de.hessj.helper
|
||||
artifactId=helper
|
||||
version=1.0-SNAPSHOT
|
||||
@@ -0,0 +1,4 @@
|
||||
de/hessj/helper/App.class
|
||||
de/hessj/helper/Helper$1.class
|
||||
de/hessj/helper/Helper$Type.class
|
||||
de/hessj/helper/Helper.class
|
||||
@@ -0,0 +1,2 @@
|
||||
/mnt/janik/DOKUMENTE/Programmierung/MCServer/MCPlugins/helper/src/main/java/de/hessj/helper/Helper.java
|
||||
/mnt/janik/DOKUMENTE/Programmierung/MCServer/MCPlugins/helper/src/main/java/de/hessj/helper/App.java
|
||||
Reference in New Issue
Block a user