replace wall of text that was registering listeners with a nice loop

This commit is contained in:
YouHaveTrouble
2020-08-21 03:32:39 +02:00
parent 1f225d14f8
commit 1ce19a564b
25 changed files with 65 additions and 30 deletions
@@ -36,7 +36,7 @@ public class DatabaseSQLite {
return true;
}
public void testConnection() {
public boolean testConnection() {
Connection conn = null;
try {
conn = DriverManager.getConnection(url);
@@ -48,10 +48,12 @@ public class DatabaseSQLite {
if (conn != null) {
conn.close();
}
return true;
} catch (SQLException ex) {
System.out.println(ex.getMessage());
}
}
return false;
}
public HashMap<String, Object> getPlayerInfo(UUID uuid) {
@@ -0,0 +1,11 @@
package eu.endermite.togglepvp.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Listener {}