mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
replace wall of text that was registering listeners with a nice loop
This commit is contained in:
@@ -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 {}
|
||||
Reference in New Issue
Block a user