mirror of
https://github.com/taoneill/war.git
synced 2025-02-23 06:41:20 +01:00
Made potion effects less frequent when stealing flag or cake, because they got on my nerves. Wish I could disable the sound for an effect from the server.
This commit is contained in:
parent
a9c09c3f16
commit
4b69b14e10
@ -192,7 +192,11 @@ public class WarEntityListener implements Listener {
|
||||
|
||||
// Blow up bomb
|
||||
defenderWarzone.getWorld().createExplosion(a.getLocation(), 2F);
|
||||
|
||||
|
||||
// bring back tnt
|
||||
bomb.getVolume().resetBlocks();
|
||||
bomb.addBombBlocks();
|
||||
|
||||
// Notify everyone
|
||||
for (Team t : defenderWarzone.getTeams()) {
|
||||
if (War.war.isSpoutServer()) {
|
||||
@ -209,13 +213,10 @@ public class WarEntityListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
// bring back tnt
|
||||
bomb.getVolume().resetBlocks();
|
||||
bomb.addBombBlocks();
|
||||
|
||||
t.teamcast(attackerTeam.getKind().getColor() + a.getName() + ChatColor.WHITE
|
||||
+ " made " + defenderTeam.getKind().getColor() + d.getName() + ChatColor.WHITE + " blow up!");
|
||||
}
|
||||
|
||||
}
|
||||
} else if (attackerTeam != null && defenderTeam != null && attackerTeam == defenderTeam && attackerWarzone == defenderWarzone && attacker.getEntityId() != defender.getEntityId()) {
|
||||
// same team, but not same person
|
||||
|
@ -503,7 +503,7 @@ public class WarPlayerListener implements Listener {
|
||||
// Flag capture
|
||||
if (playerWarzone.isFlagThief(player.getName())) {
|
||||
// smoky
|
||||
if (System.currentTimeMillis() % 3 == 0) {
|
||||
if (System.currentTimeMillis() % 13 == 0) {
|
||||
playerWarzone.getWorld().playEffect(player.getLocation(), Effect.POTION_BREAK, playerTeam.getKind().getPotionEffectColor());
|
||||
}
|
||||
|
||||
@ -654,7 +654,7 @@ public class WarPlayerListener implements Listener {
|
||||
// Cake retrieval
|
||||
if (playerWarzone.isCakeThief(player.getName())) {
|
||||
// smoky
|
||||
if (System.currentTimeMillis() % 3 == 0) {
|
||||
if (System.currentTimeMillis() % 13 == 0) {
|
||||
playerWarzone.getWorld().playEffect(player.getLocation(), Effect.POTION_BREAK, playerTeam.getKind().getPotionEffectColor());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user