Skip to content

Commit 8a6a1bf

Browse files
authored
Merge pull request #2 from agentdid127/release
Release
2 parents 1f59f19 + 10314dc commit 8a6a1bf

File tree

3 files changed

+6
-26
lines changed

3 files changed

+6
-26
lines changed

pom.xml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<description>Plugin Development Library</description>
1515
<properties>
16-
<java.version>1.8</java.version>
16+
<java.version>16</java.version>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
</properties>
1919
<url>http://agentdid127.com</url>
@@ -102,28 +102,11 @@
102102
<version>1.15.2-R0.1-SNAPSHOT</version>
103103
<scope>provided</scope>
104104
</dependency>
105-
<dependency>
106-
<groupId>com.bergerkiller.bukkit</groupId>
107-
<artifactId>BKCommonLib</artifactId>
108-
<version>1.16.3-v1</version>
109-
<scope>provided</scope>
110-
</dependency>
111-
<dependency>
112-
<groupId>com.sk89q.worldguard</groupId>
113-
<artifactId>worldguard-bukkit</artifactId>
114-
<version>7.0.5-SNAPSHOT</version>
115-
<scope>provided</scope>
116-
</dependency>
117-
<dependency>
118-
<groupId>com.sk89q.worldedit</groupId>
119-
<artifactId>worldedit-bukkit</artifactId>
120-
<version>7.2.0-SNAPSHOT</version>
121-
<scope>provided</scope>
122-
</dependency>
123105
<dependency>
124106
<groupId>mysql</groupId>
125107
<artifactId>mysql-connector-java</artifactId>
126108
<version>8.0.22</version>
109+
<scope>compile</scope>
127110
</dependency>
128111
<dependency>
129112
<groupId>net.md-5</groupId>

src/main/java/com/agentdid127/agentlib/util/Database.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public static ArrayList<String> database(String[] config, String type, String co
1919
String user = config[1];
2020
String password = config[2];
2121

22-
new com.mysql.cj.jdbc.Driver();
2322
ArrayList<String> out = new ArrayList<String>();
2423
if (type.equals("select")) {
2524
try (

src/main/java/com/agentdid127/agentlib/util/Util.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.agentdid127.agentlib.util;
22

3-
import com.mojang.api.profiles.HttpProfileRepository;
4-
import com.mojang.api.profiles.Profile;
53

64
import java.io.File;
75
import java.io.FileInputStream;
@@ -12,12 +10,12 @@
1210

1311
public class Util {
1412

15-
13+
/* Commented out since Mojang added a new account system, which will need to be fixed.
1614
/**
1715
* Checks if a UUID is a bedrock UUID
1816
* @param uuid
1917
* @return
20-
*/
18+
*
2119
public static boolean isBedrock(String uuid) {
2220
2321
if (uuid.startsWith("00000000")) return true;
@@ -32,14 +30,14 @@ public static boolean isBedrock(String uuid) {
3230
* Gets UUID from Player Username
3331
* @param username
3432
* @return
35-
*/
33+
*
3634
public static UUID getUUID(String username) {
3735
Profile[] profile = repository.findProfilesByNames(username);
3836
if (profile.length == 1) {
3937
return UUID.fromString(UUID_PATTERN.matcher(profile[0].getId()).replaceFirst("$1-$2-$3-$4-$5"));
4038
}
4139
return null;
42-
}
40+
}*/
4341

4442
/**
4543
* Gets byte count of local file

0 commit comments

Comments
 (0)