fixed CC Bug :D
This commit is contained in:
parent
e02bcd8b84
commit
d7eb01e8f0
@ -39,6 +39,17 @@ public class UnknownPackageReward extends Reward
|
||||
@Override
|
||||
public boolean canGiveReward(Player player)
|
||||
{
|
||||
System.out.println("Player: " + (player.getName()));
|
||||
System.out.println("Player Online: " + (player.isOnline()));
|
||||
System.out.println("Donation: " + (_donationManager == null));
|
||||
System.out.println("Donor: " + (_donationManager.Get(player.getName()) == null));
|
||||
|
||||
if (_donationManager.Get(player.getName()) == null)
|
||||
{
|
||||
System.out.println("Could not give reward " + _packageName + " to Offline Player: " + player.getName());
|
||||
return false;
|
||||
}
|
||||
|
||||
return !_donationManager.Get(player.getName()).OwnsUnknownPackage(_packageName);
|
||||
}
|
||||
|
||||
|
@ -1083,6 +1083,9 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
|
||||
public void rewardPet(Player player, String pet, EntityType type)
|
||||
{
|
||||
if (!player.isOnline())
|
||||
return;
|
||||
|
||||
PetReward reward = new PetReward(_petManager, _inventoryManager, _donationManager, pet, pet, type, RewardRarity.OTHER, 0);
|
||||
|
||||
if (reward.canGiveReward(player))
|
||||
|
@ -151,6 +151,7 @@ public class BossSnowmanPattern
|
||||
{
|
||||
ent.Entity.remove();
|
||||
entIterator.remove();
|
||||
continue;
|
||||
}
|
||||
|
||||
//Move
|
||||
|
@ -731,7 +731,6 @@ public class GameFlagManager implements Listener
|
||||
else
|
||||
team.RemovePlayer(event.getPlayer());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user