@@ -16,7 +16,7 @@ private DatabaseAPI() {
16
16
* @param offlinePlayer target player
17
17
* @return true if the player exists in the DB, false if they do not
18
18
*/
19
- public boolean doesPlayerExistInDB (@ NotNull OfflinePlayer offlinePlayer ) {
19
+ public static boolean doesPlayerExistInDB (@ NotNull OfflinePlayer offlinePlayer ) {
20
20
PlayerProfile playerProfile = mcMMO .getDatabaseManager ().loadPlayerProfile (offlinePlayer );
21
21
22
22
return playerProfile .isLoaded ();
@@ -28,7 +28,7 @@ public boolean doesPlayerExistInDB(@NotNull OfflinePlayer offlinePlayer) {
28
28
* @param uuid target player
29
29
* @return true if the player exists in the DB, false if they do not
30
30
*/
31
- public boolean doesPlayerExistInDB (@ NotNull UUID uuid ) {
31
+ public static boolean doesPlayerExistInDB (@ NotNull UUID uuid ) {
32
32
PlayerProfile playerProfile = null ;
33
33
try {
34
34
playerProfile = mcMMO .getDatabaseManager ().loadPlayerProfile (uuid );
@@ -45,7 +45,7 @@ public boolean doesPlayerExistInDB(@NotNull UUID uuid) {
45
45
* @param playerName target player
46
46
* @return true if the player exists in the DB, false if they do not
47
47
*/
48
- public boolean doesPlayerExistInDB (@ NotNull String playerName ) {
48
+ public static boolean doesPlayerExistInDB (@ NotNull String playerName ) {
49
49
PlayerProfile playerProfile = mcMMO .getDatabaseManager ().loadPlayerProfile (playerName );
50
50
51
51
return playerProfile .isLoaded ();
0 commit comments