mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-06 23:10:58 +00:00
Fixed getBP NPE and hopefully player lookup error
This commit is contained in:
parent
0a020bda37
commit
e5ff895f0b
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ public class GeneralMethods {
|
|||
* @see #getBendingPlayer(UUID)
|
||||
*/
|
||||
public static BendingPlayer getBendingPlayer(String player) {
|
||||
OfflinePlayer oPlayer = Bukkit.getPlayer(player);
|
||||
OfflinePlayer oPlayer = Bukkit.getOfflinePlayer(player);
|
||||
if (player == null) {
|
||||
oPlayer = Bukkit.getOfflinePlayer(oPlayer.getUniqueId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue