File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
src/main/java/me/refracdevelopment/simpletags Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1616
1717public class PlayerListener implements Listener {
1818
19+ @ EventHandler
20+ public void onLogin (PlayerLoginEvent event ) {
21+ SimpleTags .getInstance ().getProfileManager ().handleProfileCreation (event .getPlayer ().getUniqueId (), event .getPlayer ().getName ());
22+ }
23+
1924 @ EventHandler
2025 public void onJoin (PlayerJoinEvent event ) {
2126 Player player = event .getPlayer ();
2227
23- SimpleTags .getInstance ().getProfileManager ().handleProfileCreation (event .getPlayer ().getUniqueId (), event .getPlayer ().getName ());
24-
2528 Profile profile = SimpleTags .getInstance ().getProfileManager ().getProfile (player .getUniqueId ());
2629
2730 Tasks .runAsync (() -> profile .getData ().load (player ));
Original file line number Diff line number Diff line change @@ -31,11 +31,7 @@ public MySQLManager() {
3131 } else
3232 RyMessageUtils .sendConsole (true , "&aManaged to successfully connect to: &e" + database + "&a!" );
3333
34- createT ();
35- }
36-
37- public void createT () {
38- Tasks .runAsync (this ::createTables );
34+ createTables ();
3935 }
4036
4137 public Exception connect () {
Original file line number Diff line number Diff line change @@ -24,11 +24,7 @@ public SQLiteManager(String path) {
2424 } else
2525 RyMessageUtils .sendConsole (true , "&aManaged to successfully connect to: &e" + path + "&a!" );
2626
27- createT ();
28- }
29-
30- public void createT () {
31- Tasks .runAsync (this ::createTables );
27+ createTables ();
3228 }
3329
3430 public Exception connect (String path ) {
You can’t perform that action at this time.
0 commit comments