hopefully fixed a bug where pumpking king despawned.

removed 11 disc from loot
This commit is contained in:
Chiss 2014-12-13 11:55:12 +11:00
parent fb8b00200c
commit 78a34b1517
3 changed files with 18 additions and 7 deletions

View File

@ -176,8 +176,8 @@ public class RewardManager
new ItemStack(2264), rarity, 25));
addReward(new UnknownPackageReward(donationManager, "Ward Disc", "Ward Disc",
new ItemStack(2265), rarity, 25));
addReward(new UnknownPackageReward(donationManager, "11 Disc", "11 Disc",
new ItemStack(2266), rarity, 25));
// addReward(new UnknownPackageReward(donationManager, "11 Disc", "11 Disc",
// new ItemStack(2266), rarity, 25));
addReward(new UnknownPackageReward(donationManager, "Wait Disc", "Wait Disc",
new ItemStack(2267), rarity, 25));
}

View File

@ -55,6 +55,8 @@ public class PumpkinKing
_ent.setCustomName("The Pumpkin King");
_ent.setCustomNameVisible(true);
_ent.setRemoveWhenFarAway(false);
_ent.getWorld().strikeLightningEffect(_ent.getLocation());
}

View File

@ -16,6 +16,7 @@ import nautilus.game.arcade.game.games.christmas.ChristmasAudio;
import nautilus.game.arcade.game.games.christmas.content.*;
import net.minecraft.server.v1_7_R4.EntityCreature;
import org.bukkit.Bukkit;
import org.bukkit.Effect;
import org.bukkit.EntityEffect;
import org.bukkit.Location;
@ -192,12 +193,20 @@ public class Part5 extends Part
//Teleport
for (int i=0 ; i<Host.GetPlayers(true).size() ; i++)
{
Player player = Host.GetPlayers(true).get(i);
final Player player = Host.GetPlayers(true).get(i);
final int index = i;
player.leaveVehicle();
player.teleport(_playerSpawns.get(i%_playerSpawns.size()));
player.playSound(player.getLocation(), Sound.ZOMBIE_UNFECT, 2f, 1f);
Bukkit.getServer().getScheduler().runTaskLater(Host.Manager.GetPlugin(), new Runnable()
{
@Override
public void run()
{
player.leaveVehicle();
player.teleport(_playerSpawns.get(index%_playerSpawns.size()));
player.playSound(player.getLocation(), Sound.ZOMBIE_UNFECT, 2f, 1f);
}
}, i*2);
}
}
else if (_g && !_h && UtilTime.elapsed(_dialogueDelay, _delayTime - 1000))