Skip to content

Commit

Permalink
Disable tricky creepers during races
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNackGus authored and Combustible committed Oct 13, 2023
1 parent b8e3965 commit 1cf8df1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.playmonumenta.plugins.utils.InventoryUtils;
import com.playmonumenta.plugins.utils.MMLog;
import com.playmonumenta.plugins.utils.PotionUtils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.Location;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
Expand Down Expand Up @@ -36,6 +38,11 @@ public boolean rightClickEntityInteraction(Plugin plugin, Player player, Entity
return true;
}

if (player.getScoreboardTags().contains("SQRacer")) {
player.sendMessage(Component.text("You can't stop to feed the creepers during a race!", NamedTextColor.RED));
return true;
}

try {
BossManager.createBoss(null, creeper, "boss_halloween_creeper");
} catch (Exception e) {
Expand Down

0 comments on commit 1cf8df1

Please sign in to comment.