From 329953b2b7f668174c0c3a60fbc9eaeaab3fed6a Mon Sep 17 00:00:00 2001 From: Chiss Date: Sat, 31 Aug 2013 20:49:20 +1000 Subject: [PATCH] dragon update --- Plugins/Mineplex.Hub/src/mineplex/hub/Dragon.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/Dragon.java b/Plugins/Mineplex.Hub/src/mineplex/hub/Dragon.java index 2e459c940..5a6ff3e90 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/Dragon.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/Dragon.java @@ -6,6 +6,7 @@ import mineplex.core.common.util.UtilAlg; import mineplex.core.common.util.UtilEnt; import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilTime; +import mineplex.core.common.util.UtilWorld; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; @@ -50,6 +51,8 @@ public class Dragon extends MiniPlugin return; } + System.out.println("Spawning Hub Dragon"); + Dragon = Manager.GetSpawn().getWorld().spawn(Manager.GetSpawn().add(0, 50, 0), EnderDragon.class); UtilEnt.Vegetate(Dragon); @@ -103,7 +106,7 @@ public class Dragon extends MiniPlugin else if (r > 0.32) color = ChatColor.AQUA; else if (r > 0.16) color = ChatColor.LIGHT_PURPLE; - Dragon.setCustomName(color + C.Bold + "Welcome to Mineplex - Home of the highest quality Minecraft Plugins"); + Dragon.setCustomName(color + C.Bold + C.Line + "Welcome to Mineplex - Home of Premium Quality Minigames"); } private void Turn() @@ -176,6 +179,8 @@ public class Dragon extends MiniPlugin RangeBest = 9000; RangeTime = System.currentTimeMillis(); - Target = Manager.GetSpawn().add(100 - UtilMath.r(200), 50 + UtilMath.r(50), 100 - UtilMath.r(200)); + Target = Manager.GetSpawn().add(40 - UtilMath.r(80), 50 + UtilMath.r(30), 40 - UtilMath.r(80)); + + System.out.println("Dragon flying to: " + UtilWorld.locToStrClean(Target)); } }