Don't grant a max size of 54 when player first joins. Fixes #219
Introduced in ede738019a
This commit is contained in:
@@ -111,7 +111,7 @@ public class VaultOperations {
|
|||||||
* @return max size as integer. If no max size is set then it will default to 54.
|
* @return max size as integer. If no max size is set then it will default to 54.
|
||||||
*/
|
*/
|
||||||
public static int getMaxVaultSize(OfflinePlayer player) {
|
public static int getMaxVaultSize(OfflinePlayer player) {
|
||||||
if (player == null || !player.hasPlayedBefore() || !player.isOnline()) {
|
if (player == null || !player.isOnline()) {
|
||||||
return 54;
|
return 54;
|
||||||
}
|
}
|
||||||
for (int i = 6; i != 0; i--) {
|
for (int i = 6; i != 0; i--) {
|
||||||
@@ -299,4 +299,4 @@ public class VaultOperations {
|
|||||||
sender.sendMessage(Lang.TITLE.toString() + Lang.NO_PERMS);
|
sender.sendMessage(Lang.TITLE.toString() + Lang.NO_PERMS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user