bacon brawl fix
signel game ultra shows in hub scoreboard
This commit is contained in:
parent
21b89d2771
commit
a43a5b2c0e
@ -60,6 +60,7 @@ import mineplex.core.disguise.DisguiseManager;
|
||||
import mineplex.core.disguise.disguises.DisguisePlayer;
|
||||
import mineplex.core.disguise.disguises.DisguiseSlime;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.donation.Donor;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.event.GadgetCollideEntityEvent;
|
||||
import mineplex.core.inventory.InventoryManager;
|
||||
@ -759,8 +760,15 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
obj.getScore(C.cGold + C.Bold + "Rank").setScore(line--);
|
||||
if (GetClients().Get(player).GetRank().Has(Rank.ULTRA))
|
||||
obj.getScore(GetClients().Get(player).GetRank().Name).setScore(line--);
|
||||
else if (GetDonation().Get(player.getName()).OwnsUnknownPackage("SuperSmashMobs ULTRA") ||
|
||||
GetDonation().Get(player.getName()).OwnsUnknownPackage("Survival Games ULTRA") ||
|
||||
GetDonation().Get(player.getName()).OwnsUnknownPackage("Minigames ULTRA") ||
|
||||
GetDonation().Get(player.getName()).OwnsUnknownPackage("CastleSiege ULTRA") ||
|
||||
GetDonation().Get(player.getName()).OwnsUnknownPackage("Champions ULTRA"))
|
||||
obj.getScore("Single Ultra").setScore(line--);
|
||||
else
|
||||
obj.getScore("No Rank").setScore(line--);
|
||||
|
||||
|
||||
//Space
|
||||
obj.getScore(" ").setScore(line--);
|
||||
|
@ -74,7 +74,7 @@ public class BaconBrawl extends SoloGame
|
||||
if (event.GetCause() == DamageCause.ENTITY_ATTACK || event.GetCause() == DamageCause.CUSTOM || event.GetCause() == DamageCause.PROJECTILE)
|
||||
{
|
||||
event.GetDamageeEntity().setHealth(event.GetDamageeEntity().getMaxHealth());
|
||||
event.AddKnockback("Pig Wrestle", 1.5 + (GetStateTime() / 60000d));
|
||||
event.AddKnockback("Pig Wrestle", 1.5 + (System.currentTimeMillis() - GetStateTime() / 60000d));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user