Merge branch 'master' of ssh://184.154.0.242:7999/min/Mineplex
This commit is contained in:
commit
ac709d09ce
@ -74,6 +74,11 @@ public class PetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
|
|||||||
itemLore.add(ChatColor.RESET + C.cYellow + "Earned by defeating the Pumpkin King");
|
itemLore.add(ChatColor.RESET + C.cYellow + "Earned by defeating the Pumpkin King");
|
||||||
itemLore.add(ChatColor.RESET + C.cYellow + "in the 2014 Christmas Chaos Event.");
|
itemLore.add(ChatColor.RESET + C.cYellow + "in the 2014 Christmas Chaos Event.");
|
||||||
}
|
}
|
||||||
|
if (pet.GetPetType() == EntityType.WITHER)
|
||||||
|
{
|
||||||
|
itemLore.add(C.cBlack);
|
||||||
|
itemLore.add(ChatColor.RESET + C.cYellow + "Unlocked with Legend Rank");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Owned
|
//Owned
|
||||||
|
@ -737,38 +737,38 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
if (_scoreboardTick != 0)
|
if (_scoreboardTick != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int bestPig = 0;
|
// int bestPig = 0;
|
||||||
for (Player player : UtilServer.getPlayers())
|
// for (Player player : UtilServer.getPlayers())
|
||||||
{
|
// {
|
||||||
if (player.getVehicle() != null)
|
// if (player.getVehicle() != null)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
int count = 0;
|
// int count = 0;
|
||||||
|
//
|
||||||
Entity ent = player;
|
// Entity ent = player;
|
||||||
while (ent.getPassenger() != null)
|
// while (ent.getPassenger() != null)
|
||||||
{
|
// {
|
||||||
ent = ent.getPassenger();
|
// ent = ent.getPassenger();
|
||||||
count++;
|
// count++;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (count > bestPig)
|
// if (count > bestPig)
|
||||||
{
|
// {
|
||||||
_pigStacker = player.getName();
|
// _pigStacker = player.getName();
|
||||||
bestPig = count;
|
// bestPig = count;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (bestPig == 0)
|
// if (bestPig == 0)
|
||||||
{
|
// {
|
||||||
_pigStacker = "0 - Nobody";
|
// _pigStacker = "0 - Nobody";
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
_pigStacker = bestPig + " - " + _pigStacker;
|
// _pigStacker = bestPig + " - " + _pigStacker;
|
||||||
|
//
|
||||||
if (_pigStacker.length() > 16)
|
// if (_pigStacker.length() > 16)
|
||||||
_pigStacker = _pigStacker.substring(0, 16);
|
// _pigStacker = _pigStacker.substring(0, 16);
|
||||||
}
|
// }
|
||||||
|
|
||||||
for (Player player : UtilServer.getPlayers())
|
for (Player player : UtilServer.getPlayers())
|
||||||
{
|
{
|
||||||
@ -789,10 +789,8 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
int line = 15;
|
int line = 15;
|
||||||
|
|
||||||
//Stacker
|
//Stacker
|
||||||
obj.getScore(C.cAqua + C.Bold + "Stacker").setScore(line--);
|
obj.getScore(C.cAqua + C.Bold + "Server").setScore(line--);
|
||||||
player.getScoreboard().resetScores(Get(player).BestPig);
|
obj.getScore(GetPlugin().getConfig().getString("serverstatus.name")).setScore(line--);
|
||||||
Get(player).BestPig = _pigStacker;
|
|
||||||
obj.getScore(Get(player).BestPig).setScore(line--);
|
|
||||||
|
|
||||||
//Space
|
//Space
|
||||||
obj.getScore(" ").setScore(line--);
|
obj.getScore(" ").setScore(line--);
|
||||||
|
@ -24,6 +24,7 @@ public abstract class TeamGame extends Game
|
|||||||
private NautHashMap<String, Long> _rejoinTime = new NautHashMap<String, Long>();
|
private NautHashMap<String, Long> _rejoinTime = new NautHashMap<String, Long>();
|
||||||
protected NautHashMap<String, GameTeam> RejoinTeam = new NautHashMap<String, GameTeam>();
|
protected NautHashMap<String, GameTeam> RejoinTeam = new NautHashMap<String, GameTeam>();
|
||||||
protected NautHashMap<String, Kit> RejoinKit = new NautHashMap<String, Kit>();
|
protected NautHashMap<String, Kit> RejoinKit = new NautHashMap<String, Kit>();
|
||||||
|
protected NautHashMap<String, Double> RejoinHealth = new NautHashMap<String, Double>();
|
||||||
|
|
||||||
protected long RejoinTime = 120000;
|
protected long RejoinTime = 120000;
|
||||||
|
|
||||||
@ -80,6 +81,8 @@ public abstract class TeamGame extends Game
|
|||||||
if (GetKit(player) != null)
|
if (GetKit(player) != null)
|
||||||
RejoinKit.put(player.getName(), GetKit(player));
|
RejoinKit.put(player.getName(), GetKit(player));
|
||||||
|
|
||||||
|
RejoinHealth.put(player.getName(), player.getHealth());
|
||||||
|
|
||||||
GetLocationStore().put(player.getName(), player.getLocation());
|
GetLocationStore().put(player.getName(), player.getLocation());
|
||||||
|
|
||||||
//Announcement
|
//Announcement
|
||||||
@ -105,6 +108,9 @@ public abstract class TeamGame extends Game
|
|||||||
if (kit != null)
|
if (kit != null)
|
||||||
_playerKit.put(event.getPlayer(), kit);
|
_playerKit.put(event.getPlayer(), kit);
|
||||||
|
|
||||||
|
if (RejoinHealth.containsKey(event.getPlayer().getName()))
|
||||||
|
event.getPlayer().setHealth(RejoinHealth.remove(event.getPlayer().getName()));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,6 +148,7 @@ public abstract class TeamGame extends Game
|
|||||||
Announce(team.GetColor() + C.Bold + name + " did not reconnect in time!", false);
|
Announce(team.GetColor() + C.Bold + name + " did not reconnect in time!", false);
|
||||||
|
|
||||||
RejoinKit.remove(name);
|
RejoinKit.remove(name);
|
||||||
|
RejoinHealth.remove(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ public class KitWitherSkeleton extends SmashKit
|
|||||||
new String[]
|
new String[]
|
||||||
{
|
{
|
||||||
ChatColor.RESET + "Launch a Wither Skull forwards, hold",
|
ChatColor.RESET + "Launch a Wither Skull forwards, hold",
|
||||||
ChatColor.RESET + "block to guide the missile! Release",
|
ChatColor.RESET + "block to guide the missile!",
|
||||||
ChatColor.RESET + "block to detonate it midair.",
|
ChatColor.RESET + "Detonates on collision.",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.IRON_AXE, (byte)0, 1,
|
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.IRON_AXE, (byte)0, 1,
|
||||||
|
@ -13,6 +13,7 @@ import org.bukkit.Sound;
|
|||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftArrow;
|
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftArrow;
|
||||||
|
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||||
import org.bukkit.entity.Arrow;
|
import org.bukkit.entity.Arrow;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -24,9 +25,9 @@ import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
|
|||||||
import org.bukkit.event.entity.EntityShootBowEvent;
|
import org.bukkit.event.entity.EntityShootBowEvent;
|
||||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||||
import org.bukkit.event.entity.ProjectileHitEvent;
|
import org.bukkit.event.entity.ProjectileHitEvent;
|
||||||
|
|
||||||
import net.minecraft.server.v1_7_R4.EntityArrow;
|
import net.minecraft.server.v1_7_R4.EntityArrow;
|
||||||
import net.minecraft.server.v1_7_R4.Item;
|
import net.minecraft.server.v1_7_R4.Item;
|
||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.F;
|
import mineplex.core.common.util.F;
|
||||||
import mineplex.core.common.util.MapUtil;
|
import mineplex.core.common.util.MapUtil;
|
||||||
@ -274,7 +275,9 @@ public class TurfForts extends TeamGame
|
|||||||
if (!_fight)
|
if (!_fight)
|
||||||
{
|
{
|
||||||
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot attack during Build Time!"));
|
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot attack during Build Time!"));
|
||||||
event.getProjectile().remove();
|
event.setCancelled(true);
|
||||||
|
|
||||||
|
((Player) event.getEntity()).updateInventory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -599,6 +602,9 @@ public class TurfForts extends TeamGame
|
|||||||
{
|
{
|
||||||
for (Player player : team.GetPlayers(true))
|
for (Player player : team.GetPlayers(true))
|
||||||
{
|
{
|
||||||
|
if (((CraftPlayer) player).getHandle().spectating)
|
||||||
|
continue;
|
||||||
|
|
||||||
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
|
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
|
||||||
while (block.getTypeId() != 159 && block.getY() > 0)
|
while (block.getTypeId() != 159 && block.getY() > 0)
|
||||||
block = block.getRelative(BlockFace.DOWN);
|
block = block.getRelative(BlockFace.DOWN);
|
||||||
|
@ -461,7 +461,7 @@ public class UHC extends TeamGame
|
|||||||
if (event.getBlock().getX() >= -16 &&
|
if (event.getBlock().getX() >= -16 &&
|
||||||
event.getBlock().getX() <= 16 &&
|
event.getBlock().getX() <= 16 &&
|
||||||
event.getBlock().getZ() >= -16 &&
|
event.getBlock().getZ() >= -16 &&
|
||||||
event.getBlock().getZ() >= 16 &&
|
event.getBlock().getZ() <= 16 &&
|
||||||
event.getBlock().getY() >= _yMax)
|
event.getBlock().getY() >= _yMax)
|
||||||
{
|
{
|
||||||
UtilPlayer.message(event.getPlayer(), F.main("Game", "You cannot build this high up."));
|
UtilPlayer.message(event.getPlayer(), F.main("Game", "You cannot build this high up."));
|
||||||
|
@ -56,7 +56,7 @@ public class PerkWolf extends Perk
|
|||||||
C.cGray + "Attacks give +1 Damage for 3 seconds. Stacks.",
|
C.cGray + "Attacks give +1 Damage for 3 seconds. Stacks.",
|
||||||
C.cYellow + "Right-Click" + C.cGray + " with Axe to use " + C.cGreen + "Cub Tackle",
|
C.cYellow + "Right-Click" + C.cGray + " with Axe to use " + C.cGreen + "Cub Tackle",
|
||||||
C.cYellow + "Right-Click" + C.cGray + " with Spade to use " + C.cGreen + "Wolf Strike",
|
C.cYellow + "Right-Click" + C.cGray + " with Spade to use " + C.cGreen + "Wolf Strike",
|
||||||
C.cGray + "Wolf Strike deals 200% Knockback to tackled opponents.",
|
C.cGray + "Wolf Strike deals 300% Knockback to tackled opponents.",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -964,7 +964,7 @@ public class GameLobbyManager implements Listener, IPacketHandler
|
|||||||
|
|
||||||
objective.getScore(" ").setScore(line--);
|
objective.getScore(" ").setScore(line--);
|
||||||
|
|
||||||
objective.getScore(C.cYellow + "Players").setScore(line--);
|
objective.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
||||||
|
|
||||||
// Remove Old
|
// Remove Old
|
||||||
entry.getValue().resetScores(_oldPlayerCount + "/" + _oldMaxPlayerCount);
|
entry.getValue().resetScores(_oldPlayerCount + "/" + _oldMaxPlayerCount);
|
||||||
@ -1014,10 +1014,16 @@ public class GameLobbyManager implements Listener, IPacketHandler
|
|||||||
|
|
||||||
_gemMap.put(entry.getKey(), Manager.GetDonation().Get(entry.getKey().getName()).GetGems());
|
_gemMap.put(entry.getKey(), Manager.GetDonation().Get(entry.getKey().getName()).GetGems());
|
||||||
|
|
||||||
|
//Server
|
||||||
|
objective.getScore(" ").setScore(line--);
|
||||||
|
objective.getScore(C.cAqua + C.Bold + "Server").setScore(line--);
|
||||||
|
objective.getScore(Manager.GetPlugin().getConfig().getString("serverstatus.name")).setScore(line--);
|
||||||
|
|
||||||
|
//ELO
|
||||||
if (Manager.GetGame() != null && Manager.GetGame().EloRanking)
|
if (Manager.GetGame() != null && Manager.GetGame().EloRanking)
|
||||||
{
|
{
|
||||||
objective.getScore(" ").setScore(line--);
|
objective.getScore(" ").setScore(line--);
|
||||||
objective.getScore(C.cYellow + C.Bold + "Elo").setScore(line--);
|
objective.getScore(C.cPurple + C.Bold + "Elo").setScore(line--);
|
||||||
|
|
||||||
// Remove old
|
// Remove old
|
||||||
entry.getValue().resetScores(_eloMap.get(entry.getKey()) + " ");
|
entry.getValue().resetScores(_eloMap.get(entry.getKey()) + " ");
|
||||||
|
@ -144,7 +144,14 @@ public class GameLootManager implements Listener
|
|||||||
{
|
{
|
||||||
if (Manager.GetClients().Get(player).GetRank().Has(Rank.HERO))
|
if (Manager.GetClients().Get(player).GetRank().Has(Rank.HERO))
|
||||||
{
|
{
|
||||||
chance *= 1.4;
|
if (Manager.GetClients().Get(player).GetRank().Has(Rank.LEGEND))
|
||||||
|
{
|
||||||
|
chance *= 1.6;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
chance *= 1.4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user