first commit

This commit is contained in:
administrator
2024-09-10 13:35:12 +02:00
commit 5ba9be7ac6
4884 changed files with 831758 additions and 0 deletions

BIN
helper/.DS_Store vendored Executable file

Binary file not shown.

BIN
helper/._.DS_Store Executable file

Binary file not shown.

4
helper/.vscode/settings.json vendored Executable file
View File

@@ -0,0 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic"
}

55
helper/pom.xml Executable file
View 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>

View 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() {
}
}

View 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);
}
}

View 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

Binary file not shown.

BIN
helper/target/._.DS_Store Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
main: de.hessj.helper.App
name: HelperPlugin
version: 0.1
api-version: 1.19

Binary file not shown.

View 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

View File

@@ -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

View File

@@ -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