Fixed getBP NPE and hopefully player lookup error

This commit is contained in:
OmniCypher 2015-12-29 00:37:25 -08:00
parent 0a020bda37
commit e5ff895f0b

View file

@ -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());
}