Merge branch 'master' of ssh://184.154.0.242:7999/min/Mineplex
This commit is contained in:
commit
4bb100b6be
@ -228,8 +228,14 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
||||
if (_activePetOwners.containsKey(player.getName()))
|
||||
{
|
||||
final Creature pet = _activePetOwners.get(player.getName());
|
||||
|
||||
//Wither Silverfish
|
||||
if (pet.getPassenger() != null)
|
||||
pet.getPassenger().remove();
|
||||
|
||||
pet.remove();
|
||||
|
||||
|
||||
if (removeOwner)
|
||||
{
|
||||
_activePetOwners.remove(player.getName());
|
||||
|
@ -243,7 +243,7 @@ public class PreferencesPage extends ShopPageBase<PreferencesManager, Preference
|
||||
UserPreferences userPreferences = getPlugin().Get(getPlayer());
|
||||
int index = 9;
|
||||
|
||||
buildPreference(index, Material.FIREBALL, "Hub Stacker", userPreferences.HubGames, _toggleHubGames);
|
||||
buildPreference(index, Material.FIREBALL, "Hub Player Stacker", userPreferences.HubGames, _toggleHubGames);
|
||||
index += 2;
|
||||
buildPreference(index, Material.EYE_OF_ENDER, "Hub Player Visibility", userPreferences.ShowPlayers, _toggleHubPlayers);
|
||||
index += 2;
|
||||
|
@ -866,7 +866,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
return UtilTime.elapsed(_portalTime.get(player.getName()), 5000);
|
||||
}
|
||||
|
||||
public boolean CanBump(LivingEntity ent)
|
||||
public boolean hasPlayerStackingEnabled(LivingEntity ent)
|
||||
{
|
||||
if (!(ent instanceof Player))
|
||||
return true;
|
||||
|
@ -83,8 +83,9 @@ public class SoccerManager extends MiniPlugin
|
||||
private Vector _ballVel;
|
||||
private long _ballDeadTime = -1;
|
||||
|
||||
private String _lastKicker = "";
|
||||
private Color _lastKick = null;
|
||||
private String _lastRedKicker = "";
|
||||
private String _lastBlueKicker = "";
|
||||
private Color _lastKickColor = null;
|
||||
|
||||
//Item Rebound
|
||||
protected Vector _vel;
|
||||
@ -176,7 +177,7 @@ public class SoccerManager extends MiniPlugin
|
||||
if (_ball == null)
|
||||
return;
|
||||
|
||||
if (_lastKick == Color.AQUA)
|
||||
if (_lastKickColor == Color.AQUA)
|
||||
{
|
||||
for (int i = 0 ; i < 3 ; i++)
|
||||
UtilParticle.PlayParticle(ParticleType.RED_DUST, _ball.getLocation().add(0.0, 0.5, 0.0), -1, 1, 1, 1, 0,
|
||||
@ -213,13 +214,22 @@ public class SoccerManager extends MiniPlugin
|
||||
|
||||
UtilAction.zeroVelocity(player);
|
||||
|
||||
_lastKick = getTeamColor(player);
|
||||
if (_lastKick == null)
|
||||
_lastKicker = player.getName();
|
||||
else if (_lastKick == Color.RED)
|
||||
_lastKicker = C.cRed + player.getName();
|
||||
else if (_lastKick == Color.AQUA)
|
||||
_lastKicker = C.cAqua + player.getName();
|
||||
_lastKickColor = getTeamColor(player);
|
||||
if (_lastKickColor == Color.RED)
|
||||
{
|
||||
_lastRedKicker = C.cRed + player.getName();
|
||||
|
||||
if (_lastBlueKicker.length() == 0)
|
||||
_lastBlueKicker = C.cRed + player.getName();
|
||||
}
|
||||
|
||||
else if (_lastKickColor == Color.AQUA)
|
||||
{
|
||||
_lastBlueKicker = C.cAqua + player.getName();
|
||||
|
||||
if (_lastRedKicker.length() == 0)
|
||||
_lastRedKicker = C.cRed + player.getName();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -239,14 +249,15 @@ public class SoccerManager extends MiniPlugin
|
||||
|
||||
for (Player player : _active)
|
||||
UtilTextMiddle.display("Goal! (" + C.cRed + _redGoals + C.cWhite + " : " + C.cBlue + _blueGoals + C.cWhite + ")",
|
||||
_lastKicker + C.cWhite + " scored for " + C.cAqua + "Blue Team", 0, 70, 20, player);
|
||||
_lastBlueKicker + C.cWhite + " scored for " + C.cAqua + "Blue Team", 0, 70, 20, player);
|
||||
|
||||
_ball.remove();
|
||||
_ball = null;
|
||||
|
||||
_lastRedKicker = "";
|
||||
_lastBlueKicker = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -264,10 +275,13 @@ public class SoccerManager extends MiniPlugin
|
||||
|
||||
for (Player player : _active)
|
||||
UtilTextMiddle.display("Goal! (" + C.cRed + _redGoals + C.cWhite + " : " + C.cBlue + _blueGoals + C.cWhite + ")",
|
||||
_lastKicker + C.cWhite + " scored for " + C.cRed + "Red Team", 0, 70, 20, player);
|
||||
_lastRedKicker + C.cWhite + " scored for " + C.cRed + "Red Team", 0, 70, 20, player);
|
||||
|
||||
_ball.remove();
|
||||
_ball = null;
|
||||
|
||||
_lastRedKicker = "";
|
||||
_lastBlueKicker = "";
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -95,12 +95,6 @@ public class StackerManager extends MiniPlugin implements IThrown
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Manager.CanBump(stacker))
|
||||
{
|
||||
UtilPlayer.message(stacker, F.main("Stacker", "You are not playing stacker."));
|
||||
return;
|
||||
}
|
||||
|
||||
if (stacker.getVehicle() != null || _tempStackShift.contains(stacker))
|
||||
{
|
||||
UtilPlayer.message(stacker, F.main("Stacker", "You cannot stack while stacked..."));
|
||||
@ -123,9 +117,15 @@ public class StackerManager extends MiniPlugin implements IThrown
|
||||
|
||||
if (stackee instanceof Player)
|
||||
{
|
||||
if (!Manager.CanBump(((Player)stackee)))
|
||||
if (!Manager.hasPlayerStackingEnabled(stacker))
|
||||
{
|
||||
UtilPlayer.message(stacker, F.main("Stacker", F.name(UtilEnt.getName(stackee)) + " is not playing stacker."));
|
||||
UtilPlayer.message(stacker, F.main("Stacker", "You have player stacking disabled."));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Manager.hasPlayerStackingEnabled(((Player)stackee)))
|
||||
{
|
||||
UtilPlayer.message(stacker, F.main("Stacker", F.name(UtilEnt.getName(stackee)) + " has player stacking disabled."));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -242,7 +242,7 @@ public class StackerManager extends MiniPlugin implements IThrown
|
||||
if (target.getCustomName() != null || (target.getPassenger() != null && target.getPassenger() instanceof LivingEntity && ((LivingEntity)target.getPassenger()).getCustomName() != null))
|
||||
return;
|
||||
|
||||
if (!Manager.CanBump(target))
|
||||
if (!Manager.hasPlayerStackingEnabled(target))
|
||||
return;
|
||||
|
||||
//Velocity
|
||||
|
@ -31,6 +31,7 @@ import org.bukkit.entity.Item;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Pig;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Silverfish;
|
||||
import org.bukkit.entity.Skeleton;
|
||||
import org.bukkit.entity.Skeleton.SkeletonType;
|
||||
import org.bukkit.entity.Snowman;
|
||||
@ -44,6 +45,7 @@ import org.bukkit.event.block.BlockIgniteEvent.IgniteCause;
|
||||
import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.bukkit.event.block.BlockSpreadEvent;
|
||||
import org.bukkit.event.block.LeavesDecayEvent;
|
||||
import org.bukkit.event.entity.EntityChangeBlockEvent;
|
||||
import org.bukkit.event.entity.EntityCombustEvent;
|
||||
import org.bukkit.event.entity.EntityExplodeEvent;
|
||||
import org.bukkit.event.entity.EntityTargetEvent;
|
||||
@ -162,6 +164,12 @@ public class WorldManager extends MiniPlugin
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void BlockEntityChange(EntityChangeBlockEvent event)
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void Explosion(EntityExplodeEvent event)
|
||||
|
@ -11,6 +11,6 @@
|
||||
<classpathentry kind="var" path="REPO_DIR/Plugins/Libraries/httpclient-4.2.jar"/>
|
||||
<classpathentry kind="var" path="REPO_DIR/Plugins/Libraries/commons-codec-1.6.jar"/>
|
||||
<classpathentry kind="var" path="REPO_DIR/Plugins/Libraries/gson-2.2.1.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_60"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
Loading…
Reference in New Issue
Block a user