Buff Knockback to 2 and allow hiders to fight back by default so the knockback isn't cancelled
This commit is contained in:
parent
555ac1e053
commit
e5d31686e5
@ -160,7 +160,7 @@ public class Arena implements ConfigurationSerializable {
|
||||
(Integer) map.getOrDefault("timeUntilHidersSword", 30),
|
||||
(Integer) map.getOrDefault("blockAnnouncerTime", 45),
|
||||
(Boolean) map.getOrDefault("seekersCanHurtSeekers", false),
|
||||
(Boolean) map.getOrDefault("hidersCanHurtSeekers", false),
|
||||
(Boolean) map.getOrDefault("hidersCanHurtSeekers", true),
|
||||
(Boolean) map.getOrDefault("hidersCanHurtHiders", false),
|
||||
(Boolean) map.getOrDefault("seekersTakeFallDamage", false),
|
||||
(Boolean) map.getOrDefault("hidersTakeFallDamage", false),
|
||||
|
@ -324,7 +324,7 @@ public class BlockHunt extends JavaPlugin implements Listener {
|
||||
if (arena.timer > 0) {
|
||||
if (arena.timer == arena.gameTime - arena.timeUntilHidersSword) {
|
||||
ItemStack sword = new ItemStack(Material.WOODEN_SWORD, 1);
|
||||
sword.addUnsafeEnchantment(Enchantment.KNOCKBACK, 1);
|
||||
sword.addUnsafeEnchantment(Enchantment.KNOCKBACK, 2);
|
||||
for (Player arenaPlayer : arena.playersInArena) {
|
||||
if (!arena.seekers.contains(arenaPlayer)) {
|
||||
arenaPlayer.getInventory().addItem(sword);
|
||||
|
Loading…
Reference in New Issue
Block a user