Fixes merging bugs

This commit is contained in:
LCastr0 2016-05-20 23:53:27 -03:00
commit 92b6abc884
5 changed files with 20 additions and 22 deletions

View File

@ -23,12 +23,12 @@ public class LockCosmeticsCommand extends CommandBase<GadgetManager>
@Override
public void Execute(Player caller, String[] args)
{
// Adds all cosmetic types
// Removes all cosmetic types
if (args.length == 0)
{
addCosmetics(null, caller);
}
// Adds specific type
// Removes specific type
else
{
String type = args[0];

View File

@ -1316,7 +1316,7 @@ public class Bridge extends TeamGame implements OreObsfucation
{
if (event.getBlock().getType() == mat)
{
drops.addAll(event.getBlock().getDrops());
drops.addAll(event.getBlock().getDrops(event.getPlayer().getItemInHand()));
break;
}
}
@ -1327,12 +1327,6 @@ public class Bridge extends TeamGame implements OreObsfucation
event.setCancelled(true);
event.getBlock().setType(Material.AIR);
if (event.getBlock().getType() == Material.FURNACE || UtilItem.isOre(event.getBlock().getType())) // Can't be broken by fist
{
if (event.getPlayer().getItemInHand() == null || !CraftItemStack.asNMSCopy(event.getPlayer().getItemInHand()).b(CraftMagicNumbers.getBlock((CraftBlock) event.getBlock())))
return;
}
Location loc = event.getBlock().getLocation().clone().add(.5, .5, .5);
for (ItemStack item : drops)

View File

@ -180,8 +180,6 @@ public class Build extends SoloGame
this.WorldTimeSet = 6000;
this.PrepareFreeze = false;
this.CreatureAllow = true;
this.WorldFireSpread = true;

View File

@ -714,6 +714,15 @@ public class TurfForts extends TeamGame
if (((CraftPlayer) player).getHandle().spectating)
continue;
//Slow
if (_enemyTurf.containsKey(player))
{
int time = (int) ((System.currentTimeMillis() - _enemyTurf.get(player)) / 2500);
if (time > 0)
Manager.GetCondition().Factory().Slow("Infiltrator Slow", player, player, 0.9, time - 1, false, false, false, false);
}
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
// Apply velocity even if the player is sneaking near turf edges.
@ -749,15 +758,6 @@ public class TurfForts extends TeamGame
byte data = block.getData();
//Slow
if (_enemyTurf.containsKey(player))
{
int time = (int) ((System.currentTimeMillis() - _enemyTurf.get(player)) / 2500);
if (time > 0)
Manager.GetCondition().Factory().Slow("Infiltrator Slow", player, player, 0.9, time - 1, false, false, false, false);
}
//On Enemy Turf
if ((team.GetColor() == ChatColor.RED && data == 3) || (team.GetColor() == ChatColor.AQUA && data == 14))
{

View File

@ -14,6 +14,7 @@ import mineplex.core.common.util.UtilTextBottom;
import mineplex.core.common.util.UtilTime;
import mineplex.core.game.GameCategory;
import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.punish.PunishClient;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
import nautilus.game.arcade.ArcadeManager;
@ -414,6 +415,11 @@ public class GameHostManager implements Listener
return;
}
if (Manager.getPunishments().GetClient(event.getPlayer().getName()).IsMuted())
{
return;
}
String msg = "";
for (int i = 1; i < event.getMessage().split(" ").length; i++)
{