diff --git a/Plugins/Mineplex.Core/src/mineplex/core/reward/rewards/UnknownPackageReward.java b/Plugins/Mineplex.Core/src/mineplex/core/reward/rewards/UnknownPackageReward.java index a7f67cb57..3a7183f72 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/reward/rewards/UnknownPackageReward.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/reward/rewards/UnknownPackageReward.java @@ -60,7 +60,11 @@ public class UnknownPackageReward extends Reward { return false; } - if (DONATION_MANAGER.Get(player).ownsUnknownSalesPackage(_packageName)) + if (DONATION_MANAGER.Get(player).ownsUnknownSalesPackage(_package)) + { + return false; + } + if (INVENTORY_MANAGER.Get(player).getItemCount(_package) > 0) { return false; } @@ -70,6 +74,10 @@ public class UnknownPackageReward extends Reward { return false; } + if (INVENTORY_MANAGER.Get(player).getItemCount(alternative) > 0) + { + return false; + } } return true; }