Skip to content

Commit

Permalink
🎉 Created method in Profile object for get OfflinePlayer.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurr0 committed Oct 2, 2021
1 parent 077200f commit 50398c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/pl/minecodes/mineeconomy/profile/Profile.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package pl.minecodes.mineeconomy.profile;

import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import pl.minecodes.mineeconomy.data.configuration.Configuration;
import pl.minecodes.mineeconomy.profile.helper.BalanceOperationCallback;

Expand All @@ -23,6 +25,10 @@ public Profile(UUID uniqueId, double balance) {
this.balance = balance;
}

public OfflinePlayer getPlayer(){
return Bukkit.getOfflinePlayer(uniqueId);
}

public UUID getUniqueId() {
return uniqueId;
}
Expand Down

0 comments on commit 50398c0

Please sign in to comment.