Small tweaks
This commit is contained in:
parent
44a244caf4
commit
ba087d119a
@ -47,7 +47,7 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
|
||||
@Override
|
||||
protected void buildPage()
|
||||
{
|
||||
Donor donor = getDonationManager().Get(getPlayer());
|
||||
// Donor donor = getDonationManager().Get(getPlayer());
|
||||
|
||||
// addItem(2, new ShopItem(CurrencyType.Gems.GetDisplayMaterial(), donor.GetGems() + " Gems", new String[] {
|
||||
// " "
|
||||
@ -83,7 +83,7 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
|
||||
addButton(46, new ShopItem(Material.GOLD_HELMET, "Hats", 1, false), new OpenHats(this));
|
||||
addButton(48, new ShopItem(Material.DIAMOND_CHESTPLATE, "Costumes", 1, false), new OpenCostumes(this));
|
||||
addButton(50, new ShopItem(Material.GREEN_RECORD, "Music", 1, false), new OpenMusic(this));
|
||||
addButton(52, new ShopItem(Material.NAME_TAG, "Taunts", 1, false), new IButton()
|
||||
addButton(52, new ShopItem(Material.NAME_TAG, "Taunts", new String[]{C.Bold + "", C.cDGreen + C.Italics + "Coming soon!"}, 1, false), new IButton()
|
||||
{
|
||||
@Override
|
||||
public void onClick(Player player, ClickType clickType)
|
||||
|
@ -9,16 +9,15 @@ import org.bukkit.entity.Item;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.UtilAction;
|
||||
import mineplex.core.common.util.UtilParticle;
|
||||
import mineplex.core.common.util.UtilParticle.ParticleType;
|
||||
import mineplex.core.common.util.UtilParticle.ViewDist;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.gadgets.Ammo;
|
||||
import mineplex.core.gadget.types.ItemGadget;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.projectile.IThrown;
|
||||
import mineplex.core.projectile.ProjectileUser;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
@ -43,19 +42,20 @@ public class ItemPartyPopper extends ItemGadget implements IThrown
|
||||
@Override
|
||||
public void ActivateCustom(Player player)
|
||||
{
|
||||
|
||||
/*
|
||||
Item ent = player.getWorld().dropItem(player.getEyeLocation().add(player.getLocation().getDirection()),
|
||||
ItemStackFactory.Instance.CreateStack(Material.REDSTONE_LAMP_OFF, (byte)0, 1, "Lamp" + Math.random()));
|
||||
|
||||
UtilAction.velocity(ent, player.getLocation().getDirection().normalize().multiply(0.1), 1, false, 0, 0.2, 10, false);
|
||||
|
||||
Manager.getProjectileManager().AddThrow(ent, player, this, 3000, false, false, true, true, 0.5f);
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
for(int data : new int[]{1,2,4,5,6,9,10,11,12,13,14,15})
|
||||
{
|
||||
UtilParticle.PlayParticleToAll(ParticleType.ICON_CRACK.getParticle(Material.INK_SACK, data), player.getEyeLocation(), null, 0.4f, 50, ViewDist.LONG);
|
||||
/*
|
||||
// UtilParticle.PlayParticleToAll(ParticleType.ICON_CRACK.getParticle(Material.INK_SACK, data), player.getEyeLocation(), null, 0.4f, 50, ViewDist.LONG);
|
||||
|
||||
for(int i = 0; i < 10; i++)
|
||||
{
|
||||
Vector v = new Vector(Math.random() - 0.5, Math.random() - 0.3, Math.random() - 0.5);
|
||||
@ -75,12 +75,12 @@ public class ItemPartyPopper extends ItemGadget implements IThrown
|
||||
Vector random = new Vector(Math.random() - 0.5, Math.random() - 0.3, Math.random() - 0.5);
|
||||
random.normalize();
|
||||
random.multiply(0.05);
|
||||
|
||||
|
||||
UtilAction.velocity(ent, player.getLocation().getDirection().normalize().multiply(0.3).add(random), 1 + 0.4 * Math.random(), false, 0, 0.2, 10, false);
|
||||
|
||||
Manager.getProjectileManager().AddThrow(ent, player, this, 3000, false, false, true, true, 0.5f);
|
||||
*/
|
||||
// }
|
||||
}
|
||||
// Sound
|
||||
for(int i = 0; i < 3; i++)
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ public class ItemSnowball extends ItemGadget
|
||||
|
||||
if(gevent.isCancelled()) return;
|
||||
|
||||
UtilAction.velocity(event.getEntity(), event.getDamager().getVelocity().normalize().add(new Vector(0,0.5,0)));
|
||||
UtilAction.velocity(event.getEntity(), event.getDamager().getVelocity().normalize().add(new Vector(0,0.5,0)).multiply(0.5));
|
||||
event.getDamager().getWorld().playSound(event.getDamager().getLocation(), Sound.STEP_SNOW, 1, 0.5f);
|
||||
}
|
||||
|
||||
|
@ -29,12 +29,13 @@ public class ParticleCoalFumes extends ParticleGadget
|
||||
{
|
||||
if(event.getType() != UpdateType.TICK) return;
|
||||
|
||||
int dur = 200;
|
||||
int tick = Math.abs(event.getTick()%dur);
|
||||
// int dur = 200;
|
||||
// int tick = Math.abs(event.getTick()%dur);
|
||||
|
||||
|
||||
double d = tick/(double)dur;
|
||||
float xz = (float) Math.sin(d*Math.PI);
|
||||
// double d = tick/(double)dur;
|
||||
// float xz = (float) Math.sin(d*Math.PI);
|
||||
float xz = 2;
|
||||
|
||||
for(Player p : GetActive())
|
||||
{
|
||||
|
@ -33,7 +33,7 @@ public class MountBabyReindeer extends HorseMount
|
||||
{
|
||||
C.cWhite + "One of Santa's baby reindeers",
|
||||
C.cWhite + "Still trying to learn how to fly"
|
||||
}, Material.SNOW_BALL, (byte) 0, 10, Color.CREAMY, Style.WHITEFIELD, Variant.HORSE, 0, null);
|
||||
}, Material.GOLDEN_CARROT, (byte) 0, 10, Color.CREAMY, Style.WHITEFIELD, Variant.HORSE, 0, null);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user