Skip to content

Commit 7cf4409

Browse files
authored
Add static to the method of the private class DatabaseAPI. (#5198)
1 parent f9513a8 commit 7cf4409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/gmail/nossr50/api/DatabaseAPI.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private DatabaseAPI() {
1616
* @param offlinePlayer target player
1717
* @return true if the player exists in the DB, false if they do not
1818
*/
19-
public boolean doesPlayerExistInDB(@NotNull OfflinePlayer offlinePlayer) {
19+
public static boolean doesPlayerExistInDB(@NotNull OfflinePlayer offlinePlayer) {
2020
PlayerProfile playerProfile = mcMMO.getDatabaseManager().loadPlayerProfile(offlinePlayer);
2121

2222
return playerProfile.isLoaded();
@@ -28,7 +28,7 @@ public boolean doesPlayerExistInDB(@NotNull OfflinePlayer offlinePlayer) {
2828
* @param uuid target player
2929
* @return true if the player exists in the DB, false if they do not
3030
*/
31-
public boolean doesPlayerExistInDB(@NotNull UUID uuid) {
31+
public static boolean doesPlayerExistInDB(@NotNull UUID uuid) {
3232
PlayerProfile playerProfile = null;
3333
try {
3434
playerProfile = mcMMO.getDatabaseManager().loadPlayerProfile(uuid);
@@ -45,7 +45,7 @@ public boolean doesPlayerExistInDB(@NotNull UUID uuid) {
4545
* @param playerName target player
4646
* @return true if the player exists in the DB, false if they do not
4747
*/
48-
public boolean doesPlayerExistInDB(@NotNull String playerName) {
48+
public static boolean doesPlayerExistInDB(@NotNull String playerName) {
4949
PlayerProfile playerProfile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName);
5050

5151
return playerProfile.isLoaded();

0 commit comments

Comments
 (0)