@@ -95,11 +95,7 @@ public void createTable(String name, String info) {
9595 } catch (SQLException exception ) {
9696 RyMessageUtils .sendConsole (true , "An error occurred while creating database table " + name + "." );
9797 exception .printStackTrace ();
98- } finally {
99- Thread .currentThread ().interrupt ();
10098 }
101-
102- Thread .currentThread ().interrupt ();
10399 }).start ();
104100 }
105101
@@ -120,11 +116,7 @@ public void execute(String query, Object... values) {
120116 RyMessageUtils .sendConsole (true , "An error occurred while executing an update on the database." );
121117 RyMessageUtils .sendConsole (true , "MySQL#execute : " + query );
122118 exception .printStackTrace ();
123- } finally {
124- Thread .currentThread ().interrupt ();
125119 }
126-
127- Thread .currentThread ().interrupt ();
128120 }).start ();
129121 }
130122
@@ -146,11 +138,7 @@ public void select(String query, SelectCall callback, Object... values) {
146138 RyMessageUtils .sendConsole (true , "An error occurred while executing a query on the database." );
147139 RyMessageUtils .sendConsole (true , "MySQL#select : " + query );
148140 exception .printStackTrace ();
149- } finally {
150- Thread .currentThread ().interrupt ();
151141 }
152-
153- Thread .currentThread ().interrupt ();
154142 }).start ();
155143 }
156144
@@ -161,12 +149,4 @@ public void updatePlayerTag(String uuid, String tag, String tagPrefix) {
161149 public void updatePlayerName (String uuid , String name ) {
162150 execute ("UPDATE SimpleTags SET name=? WHERE uuid=?" , name , uuid );
163151 }
164-
165- public void delete () {
166- execute ("TRUNCATE TABLE SimpleTags" );
167- }
168-
169- public void deletePlayer (String uuid ) {
170- execute ("DELETE FROM SimpleTags WHERE uuid=?" , uuid );
171- }
172152}
0 commit comments