Migrate from MySQL classes to bansystemAPI package structure
This commit is contained in:
@@ -7,17 +7,64 @@
|
||||
|
||||
<groupId>com.softwarerat</groupId>
|
||||
<artifactId>BansystemAPI</artifactId>
|
||||
<version>1.6.7-BETA</version>
|
||||
<version>1.6.9-BETA</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>18</maven.compiler.source>
|
||||
<maven.compiler.target>18</maven.compiler.target>
|
||||
<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>
|
||||
<configuration>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>forgejo</id>
|
||||
<name>Forgejo Maven</name>
|
||||
<url>http://heimserver.local:36107/api/packages/minecraft/maven</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>papermc-repo</id>
|
||||
<url>https://repo.papermc.io/repository/maven-public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>gitea</id>
|
||||
<url>http://heimserver.local:36107/api/packages/minecraft/maven</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
|
||||
+6
-8
@@ -1,12 +1,10 @@
|
||||
package com.softwarerat;
|
||||
package com.softwarerat.bansystemAPI;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.softwarerat.MySQL.Ban;
|
||||
import com.softwarerat.MySQL.Login;
|
||||
import com.softwarerat.MySQL.Mute;
|
||||
import com.softwarerat.MySQL.Report;
|
||||
import com.softwarerat.yml.Yaml;
|
||||
import com.softwarerat.bansystemAPI.MySQL.Ban;
|
||||
import com.softwarerat.bansystemAPI.MySQL.Login;
|
||||
import com.softwarerat.bansystemAPI.MySQL.Mute;
|
||||
import com.softwarerat.bansystemAPI.MySQL.Report;
|
||||
import com.softwarerat.bansystemAPI.yml.Yaml;
|
||||
|
||||
import lombok.Getter;
|
||||
@Getter
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package com.softwarerat.MySQL;
|
||||
|
||||
import com.softwarerat.yml.Yaml;
|
||||
package com.softwarerat.bansystemAPI.MySQL;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import com.softwarerat.bansystemAPI.yml.Yaml;
|
||||
|
||||
// Class containing all SQL things for the Ban Topic
|
||||
public class Ban {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.softwarerat.MySQL;
|
||||
package com.softwarerat.bansystemAPI.MySQL;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package com.softwarerat.MySQL;
|
||||
|
||||
import com.softwarerat.yml.Yaml;
|
||||
package com.softwarerat.bansystemAPI.MySQL;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import com.softwarerat.bansystemAPI.yml.Yaml;
|
||||
|
||||
// Class containing all SQL things for the Ban Topic
|
||||
public class Mute {
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package com.softwarerat.MySQL;
|
||||
|
||||
import com.softwarerat.yml.Yaml;
|
||||
package com.softwarerat.bansystemAPI.MySQL;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.softwarerat.bansystemAPI.yml.Yaml;
|
||||
|
||||
public class Report {
|
||||
|
||||
private final Yaml yaml;
|
||||
+4
-5
@@ -1,13 +1,12 @@
|
||||
package com.softwarerat.yml;
|
||||
package com.softwarerat.bansystemAPI.yml;
|
||||
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class Yaml {
|
||||
|
||||
private final File file;
|
||||
Reference in New Issue
Block a user