cannot shoot arrow in water.
less gems for capping
This commit is contained in:
parent
62c245d728
commit
0f31052d00
@ -1,5 +1,7 @@
|
||||
package nautilus.game.arcade.game.games.champions;
|
||||
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.minecraft.game.core.combat.DeathMessageType;
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
@ -13,6 +15,8 @@ import nautilus.game.arcade.game.games.common.Domination;
|
||||
import nautilus.game.arcade.kit.Kit;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityShootBowEvent;
|
||||
|
||||
public class ChampionsDominate extends Domination
|
||||
{
|
||||
@ -63,4 +67,14 @@ public class ChampionsDominate extends Domination
|
||||
{
|
||||
return DeathMessageType.Detailed;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void WaterArrowCancel(EntityShootBowEvent event)
|
||||
{
|
||||
if (event.getEntity().getLocation().getBlock().isLiquid())
|
||||
{
|
||||
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot use your Bow while swimming."));
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,10 +6,12 @@ import java.util.HashMap;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityShootBowEvent;
|
||||
import org.bukkit.scoreboard.DisplaySlot;
|
||||
import org.bukkit.scoreboard.Objective;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
@ -203,4 +205,14 @@ public class ChampionsTDM extends TeamGame
|
||||
for (Player player : GetPlayers(true))
|
||||
_healthObj.getScore(player).setScore((int)player.getHealth());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void WaterArrowCancel(EntityShootBowEvent event)
|
||||
{
|
||||
if (event.getEntity().getLocation().getBlock().isLiquid())
|
||||
{
|
||||
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot use your Bow while swimming."));
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ public class CapturePoint
|
||||
{
|
||||
for (Player player : capturers)
|
||||
{
|
||||
Host.AddGems(player, 3, "Control Point Score", true);
|
||||
Host.AddGems(player, 0.6, "Control Point Score", true);
|
||||
|
||||
Host.GetStats(player).CaptureScore += 30;
|
||||
}
|
||||
@ -356,7 +356,7 @@ public class CapturePoint
|
||||
{
|
||||
for (Player player : capturers)
|
||||
{
|
||||
Host.AddGems(player, 0.1, "Control Point Score", true);
|
||||
Host.AddGems(player, 0.02, "Control Point Score", true);
|
||||
Host.GetStats(player).CaptureScore += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user