Merge branch 'master' of ssh://184.154.0.242:7999/min/mineplex into Wizards
This commit is contained in:
commit
33bbe96964
@ -1,5 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="loc" default="default" basedir=".">
|
||||
<property name="lib.dir" value="../Libraries"/>
|
||||
<path id="classpath">
|
||||
<fileset dir="${lib.dir}" includes="**/*.jar"/>
|
||||
</path>
|
||||
<target name="compileArcade" description="Arcade Compilation">
|
||||
<javac srcdir="../Mineplex.Core.Common/src" destdir="../Mineplex.Core.Common/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.Minecraft.Game.Core/src" destdir="../Mineplex.Minecraft.Game.Core/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.Minecraft.Game.ClassCombat/src" destdir="../Mineplex.Minecraft.Game.ClassCombat/bin" classpathref="classpath"/>
|
||||
<path id="classpathCommon">
|
||||
<fileset dir="../Mineplex.Core.Common/bin" includes="**/*.class"/>
|
||||
</path>
|
||||
<javac srcdir="../Mineplex.Core/src" destdir="../Mineplex.Core/bin" classpathref="classpathCommon"/>
|
||||
<javac srcdir="../Mineplex.Database/src" destdir="../Mineplex.Database/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.ServerData/src" destdir="../Mineplex.ServerData/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Nautilus.Game.Arcade/src" destdir="../Nautilus.Game.Arcade/bin" classpathref="classpath"/>
|
||||
</target>
|
||||
<target name ="Arcade" description="Arcade">
|
||||
<jar jarfile="../bin/Arcade.jar">
|
||||
<fileset dir="../Nautilus.Game.Arcade/bin">
|
||||
@ -42,6 +58,18 @@
|
||||
</jar>
|
||||
<copy file="../bin/Arcade.jar" todir="../../Testing/Arcade/plugins"/>
|
||||
</target>
|
||||
<target name="compileHub" description="Hub Compilation">
|
||||
<javac srcdir="../Mineplex.Core.Common/src" destdir="../Mineplex.Core.Common/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.Minecraft.Game.Core/src" destdir="../Mineplex.Minecraft.Game.Core/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.Minecraft.Game.ClassCombat/src" destdir="../Mineplex.Minecraft.Game.ClassCombat/bin" classpathref="classpath"/>
|
||||
<path id="classpathCommon">
|
||||
<fileset dir="../Mineplex.Core.Common/bin" includes="**/*.class"/>
|
||||
</path>
|
||||
<javac srcdir="../Mineplex.Core/src" destdir="../Mineplex.Core/bin" classpathref="classpathCommon"/>
|
||||
<javac srcdir="../Mineplex.Database/src" destdir="../Mineplex.Database/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.ServerData/src" destdir="../Mineplex.ServerData/bin" classpathref="classpath"/>
|
||||
<javac srcdir="../Mineplex.Hub/src" destdir="../Mineplex.Hub/bin" classpathref="classpath"/>
|
||||
</target>
|
||||
<target name ="Hub" description="Hub">
|
||||
<jar jarfile="../bin/Hub.jar">
|
||||
<fileset dir="../Mineplex.Hub/bin">
|
||||
|
@ -92,7 +92,7 @@ public class BungeeRotator
|
||||
|
||||
for (BungeeServer server : bungeeServers)
|
||||
{
|
||||
if (server.getPublicAddress().equalsIgnoreCase("127.0.0.1"))
|
||||
if (server.getPublicAddress().equalsIgnoreCase("127.0.0.1") || server.getPublicAddress().equalsIgnoreCase("0.0.0.0"))
|
||||
continue;
|
||||
|
||||
totalPlayers += server.getPlayerCount();
|
||||
|
@ -16,12 +16,10 @@ import mineplex.core.common.util.UtilTime.TimeUnit;
|
||||
public abstract class MiniPlugin implements Listener
|
||||
{
|
||||
protected String _moduleName = "Default";
|
||||
|
||||
protected JavaPlugin _plugin;
|
||||
|
||||
protected NautHashMap<String, ICommand> _commands;
|
||||
|
||||
public MiniPlugin(String moduleName, JavaPlugin plugin)
|
||||
public MiniPlugin(String moduleName, JavaPlugin plugin)
|
||||
{
|
||||
_moduleName = moduleName;
|
||||
_plugin = plugin;
|
||||
|
@ -981,7 +981,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketHandler
|
||||
{
|
||||
entity.getEntityId()
|
||||
});
|
||||
|
||||
|
||||
for (Player player : players)
|
||||
{
|
||||
entityTracker.clear(((CraftPlayer) player).getHandle());
|
||||
|
@ -102,7 +102,7 @@ public class LightningOrb extends SkillActive implements IThrown
|
||||
Item item = player.getWorld().dropItem(player.getEyeLocation().add(player.getLocation().getDirection()), ItemStackFactory.Instance.CreateStack(57));
|
||||
item.setVelocity(player.getLocation().getDirection());
|
||||
Factory.Projectile().AddThrow(item, player, this, System.currentTimeMillis() + 5000 - (400 * level), true, false, false,
|
||||
Sound.FIZZ, 0.6f, 1.6f, ParticleType.FIREWORKS_SPARK, UpdateType.TICK, 0.6f);
|
||||
Sound.FIZZ, 0.6f, 1.6f, ParticleType.FIREWORKS_SPARK, UpdateType.TICK, 0.4f);
|
||||
|
||||
//Inform
|
||||
UtilPlayer.message(player, F.main(GetClassType().name(), "You used " + F.skill(GetName(level)) + "."));
|
||||
|
@ -104,7 +104,7 @@ public class StaticLazer extends SkillChargeSword
|
||||
//Firework
|
||||
UtilFirework.playFirework(player.getLocation().add(player.getLocation().getDirection().multiply(Math.max(0, curRange - 0.6))), Type.BURST, Color.WHITE, false, false);
|
||||
|
||||
HashMap<LivingEntity, Double> hit = UtilEnt.getInRadius(target.subtract(0, 1, 0), 6);
|
||||
HashMap<LivingEntity, Double> hit = UtilEnt.getInRadius(target.subtract(0, 1, 0), 4);
|
||||
for (LivingEntity other : hit.keySet())
|
||||
{
|
||||
if (other.equals(player))
|
||||
|
@ -82,10 +82,8 @@ public class StaffServer extends JavaPlugin
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("04a484d0-93e0-4777-a70c-808046917e3a"), "EvilEsther"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("adaa7613-6683-400f-baf8-7272c04b2cb4"), "Timmy48081_"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("2d5fd31b-0aa5-41db-a62d-a4611a24349a"), "ishh"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("1def99f1-ae43-4917-a5dc-138dc73aaf36"), "FireStar891"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("a133d8bf-128c-47e1-b63c-33c278371593"), "blondebug"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("52eb645e-58e8-4a3f-a7dc-5c7a5e382232"), "blackfiend"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("0c4dd677-8e84-4755-8e66-f426a16b55bd"), "axegirl"));
|
||||
((CraftServer)getServer()).getHandle().addWhitelist(new GameProfile(UUID.fromString("d3965dbc-f9cc-4e5d-9306-5be2a23ad6cb"), "Dooskee"));
|
||||
|
||||
((CraftServer)getServer()).getHandle().addOp(new GameProfile(UUID.fromString("2d5fd31b-0aa5-41db-a62d-a4611a24349a"), "ishh"));
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ public class PerkBlockToss extends SmashPerk implements IThrown
|
||||
//Action
|
||||
UtilAction.velocity(block, cur.getLocation().getDirection(), mult, false, 0.2, 0, 1, true);
|
||||
Manager.GetProjectile().AddThrow(block, cur, this, -1, true, true, true,
|
||||
null, 0, 0, null, 0, UpdateType.FASTEST, 1.5f);
|
||||
null, 0, 0, null, 0, UpdateType.FASTEST, 1f);
|
||||
|
||||
//Event
|
||||
PerkBlockThrowEvent blockEvent = new PerkBlockThrowEvent(cur);
|
||||
|
@ -6,6 +6,7 @@ import mineplex.core.recharge.*;
|
||||
import mineplex.core.updater.*;
|
||||
import mineplex.core.updater.event.*;
|
||||
import nautilus.game.arcade.kit.*;
|
||||
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.block.*;
|
||||
import org.bukkit.entity.*;
|
||||
@ -133,6 +134,26 @@ public class PerkBomber extends Perk
|
||||
@EventHandler
|
||||
public void TNTInvClick(InventoryClickEvent event)
|
||||
{
|
||||
// If they have a inventory open
|
||||
if (event.getView().getTopInventory().getHolder() instanceof Player)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If they are clicking in their own inventory
|
||||
if (event.getClickedInventory() != null && event.getClickedInventory().getHolder() instanceof Player)
|
||||
{
|
||||
// If its not a shift click
|
||||
if (!event.isShiftClick())
|
||||
{
|
||||
return;
|
||||
}
|
||||
} // Else if they are not clicking in their own inventory make sure they don't have tnt in their hands
|
||||
else if (event.getCursor() == null || event.getCursor().getType() != Material.TNT)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
UtilInv.DisallowMovementOf(event, "Throwing TNT", Material.TNT, (byte) 0, true);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ public class PerkIronHook extends Perk implements IThrown
|
||||
1.8, false, 0, 0.2, 10, false);
|
||||
|
||||
Manager.GetProjectile().AddThrow(item, player, this, -1, true, true, true,
|
||||
Sound.FIRE_IGNITE, 1.4f, 0.8f, ParticleType.CRIT, null, 0, UpdateType.TICK, 1f);
|
||||
Sound.FIRE_IGNITE, 1.4f, 0.8f, ParticleType.CRIT, null, 0, UpdateType.TICK, 0.6f);
|
||||
|
||||
//Inform
|
||||
UtilPlayer.message(player, F.main("Skill", "You used " + F.skill(GetName()) + "."));
|
||||
|
@ -89,7 +89,7 @@ public class PerkPigBaconBounce extends SmashPerk implements IThrown
|
||||
//Launch
|
||||
Item ent = player.getWorld().dropItem(player.getEyeLocation(), ItemStackFactory.Instance.CreateStack(Material.PORK));
|
||||
UtilAction.velocity(ent, player.getLocation().getDirection(), 1.2, false, 0, 0.2, 10, false);
|
||||
Manager.GetProjectile().AddThrow(ent, player, this, -1, true, true, true, false, 1f);
|
||||
Manager.GetProjectile().AddThrow(ent, player, this, -1, true, true, true, false, 0.4f);
|
||||
ent.setPickupDelay(9999);
|
||||
|
||||
//Sound
|
||||
|
@ -84,7 +84,14 @@
|
||||
{
|
||||
using (var repository = _repositoryFactory.CreateRepository())
|
||||
{
|
||||
var account = repository.Where<Account>(x => x.Uuid == loginToken.Uuid).FirstOrDefault() ?? (repository.Where<Account>(x => x.Name == loginToken.Name).FirstOrDefault() ?? CreateAccount(loginToken, repository));
|
||||
var account = repository.Where<Account>(x => x.Uuid == loginToken.Uuid).FirstOrDefault();
|
||||
|
||||
if (account == default(Account))
|
||||
account = repository.Where<Account>(x => x.Name == loginToken.Name).FirstOrDefault();
|
||||
|
||||
if (account == default(Account))
|
||||
account = CreateAccount(loginToken, repository);
|
||||
|
||||
account.LoadNavigationProperties(repository.Context);
|
||||
account.LastLogin = DateTime.Now.Ticks;
|
||||
|
||||
@ -101,15 +108,23 @@
|
||||
}
|
||||
|
||||
// Insert UUID if not there
|
||||
if (String.IsNullOrEmpty(account.Uuid) && !String.IsNullOrEmpty(loginToken.Uuid))
|
||||
if (String.IsNullOrEmpty(account.Uuid))
|
||||
{
|
||||
account.Uuid = loginToken.Uuid;
|
||||
if (!String.IsNullOrEmpty(loginToken.Uuid))
|
||||
account.Uuid = loginToken.Uuid;
|
||||
}
|
||||
|
||||
// Update account name if changed
|
||||
if (!String.Equals(account.Name, loginToken.Name))
|
||||
{
|
||||
account.Name = loginToken.Name;
|
||||
|
||||
var oldAccount = repository.Where<Account>(x => x.Name == loginToken.Name).FirstOrDefault();
|
||||
|
||||
if (oldAccount != null && oldAccount != default(Account))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -121,6 +136,7 @@
|
||||
}
|
||||
* */
|
||||
|
||||
repository.Edit(account);
|
||||
repository.CommitChanges();
|
||||
|
||||
return account;
|
||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
Reference in New Issue
Block a user