Merge branch 'master' of ssh://dev1.mineplex.com:7999/min/mineplex
This commit is contained in:
commit
62c245d728
Binary file not shown.
@ -50,6 +50,8 @@ public class ClassCombatShop extends ShopBase<ClassShopManager>
|
||||
|
||||
if (clientClass != null && clientClass.IsSavingCustomBuild())
|
||||
{
|
||||
clientClass.SetActiveCustomBuild(clientClass.GetGameClass(), clientClass.GetSavingCustomBuild());
|
||||
clientClass.EquipCustomBuild(clientClass.GetSavingCustomBuild(), false);
|
||||
clientClass.SaveActiveCustomBuild();
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,6 @@ public class CustomBuildPage extends ShopPageBase<ClassShopManager, ClassCombatS
|
||||
{
|
||||
if (customBuild == null)
|
||||
{
|
||||
System.out.println("new build");
|
||||
customBuild = new CustomBuildToken(_pvpClass.GetType());
|
||||
customBuild.CustomBuildNumber = i;
|
||||
customBuild.Name = "Build " + (i + 1);
|
||||
|
@ -296,20 +296,18 @@ public class SkillPage extends ShopPageBase<ClassShopManager, ClassCombatShop>
|
||||
//Add Select Information
|
||||
itemLore.add("");
|
||||
itemLore.add("");
|
||||
if (!hasItem)
|
||||
{
|
||||
itemLore.add(C.cYellow + "Item Token Cost: " + C.cWhite + item.getTokenCost());
|
||||
itemLore.add(C.cYellow + "Item Tokens Remaining: " + C.cWhite + clientClass.GetSavingCustomBuild().ItemTokens + "/" + CustomBuildToken.MAX_ITEM_TOKENS);
|
||||
itemLore.add("");
|
||||
|
||||
if (clientClass.GetSavingCustomBuild().ItemTokens >= item.getTokenCost())
|
||||
{
|
||||
itemLore.add(C.cGreen + "Left-Click to Select");
|
||||
}
|
||||
else
|
||||
{
|
||||
itemLore.add(C.cRed + "You don't have enough Item Tokens.");
|
||||
}
|
||||
itemLore.add(C.cYellow + "Item Token Cost: " + C.cWhite + item.getTokenCost());
|
||||
itemLore.add(C.cYellow + "Item Tokens Remaining: " + C.cWhite + clientClass.GetSavingCustomBuild().ItemTokens + "/" + CustomBuildToken.MAX_ITEM_TOKENS);
|
||||
itemLore.add("");
|
||||
|
||||
if (clientClass.GetSavingCustomBuild().ItemTokens >= item.getTokenCost())
|
||||
{
|
||||
itemLore.add(C.cGreen + "Left-Click to Select");
|
||||
}
|
||||
else
|
||||
{
|
||||
itemLore.add(C.cRed + "You don't have enough Item Tokens.");
|
||||
}
|
||||
|
||||
//Color Gray
|
||||
|
@ -1455,8 +1455,8 @@ public abstract class Entity {
|
||||
if (entity == null) {
|
||||
if (this.vehicle != null) {
|
||||
// CraftBukkit start
|
||||
if ((this.bukkitEntity instanceof LivingEntity) && (this.vehicle.getBukkitEntity() instanceof Vehicle)) {
|
||||
VehicleExitEvent event = new VehicleExitEvent((Vehicle) this.vehicle.getBukkitEntity(), (LivingEntity) this.bukkitEntity);
|
||||
if ((this.bukkitEntity instanceof LivingEntity)) {
|
||||
VehicleExitEvent event = new VehicleExitEvent(this.vehicle.getBukkitEntity(), (LivingEntity) this.bukkitEntity);
|
||||
pluginManager.callEvent(event);
|
||||
|
||||
if (event.isCancelled() || this.vehicle != originalVehicle) {
|
||||
|
Loading…
Reference in New Issue
Block a user