Make sure player is online before checking permissions. Fixes #64.
This commit is contained in:
@@ -91,7 +91,7 @@ public class VaultOperations {
|
||||
* @return max size as integer. If no max size is set then it will default to 54.
|
||||
*/
|
||||
public static int getMaxVaultSize(OfflinePlayer player) {
|
||||
if (player == null || !player.hasPlayedBefore()) {
|
||||
if (player == null || !player.hasPlayedBefore() || !player.isOnline()) {
|
||||
return 54;
|
||||
}
|
||||
for (int i = 6; i != 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user