Arrange the menu properly in order it look incorrect and remove the lore of invisible effect showing -100 and everything shall be in one click and customizable from config even death prefix and everything and modrinth uploadable
Fix menu ordering, remove the invisible-effect
-100lore, and make the intended actions one-click.Move player-facing text and settings—including the death prefix—into configuration.
Check the project metadata and dependencies for Modrinth publishing readiness.
[Generation stopped]
Arrange the menu properly in order it look incorrect and remove the lore of invisible effect showing -100 and everything shall be in one click and customizable from config even death prefix and everything and modrinth uploadable and add new menu with enderpearl cooldown like the combat timer adder and enchanted apple cooldown pvp on off menu for every world and whole server if off disables for every new player joining in server and with on too set it true and false and and enderpearl cooldown if added it shall be everywhere not just in while combat even enchanted_golden_apple mention it below and option to disable pearls in one click you can use packet events protocollib if you need and mention these function in lore and as same as others and modrinth uploadable
Reorder the existing menu, remove the
-100invisibility lore, and make its actions single-click and configurable, including the death prefix.Add a cooldown/settings menu for pearls, enchanted golden apples, and per-world or server-wide PvP toggles, including defaults for new players.
Check and update the project’s metadata for Modrinth publishing.
Menu/config: reordered the settings into two balanced rows, made its title, item text, lore, slots, and size configurable, hid the invisibility potion’s effect tooltip, and added a configurable death prefix.
Cooldown/PvP controls: trace the plugin’s event listeners, combat/world handling, and persistence before adding the pearl/golden-apple and PvP menus.
Modrinth: check the build and plugin metadata for publishability.
Cooldown/PvP menu: added global ender-pearl and enchanted-golden-apple cooldown controls, one-click pearl disable, whole-server PvP, and a paginated per-world PvP toggle. The settings persist in config and are reapplied to loaded worlds and players joining or changing worlds. Cooldowns are enforced outside combat using Bukkit events.
Modrinth readiness: inspect the project’s current build and plugin metadata.
Main menu: Reordered settings into balanced rows, hid the invisibility potion’s effect tooltip, and made menu titles, slots, item names, and lore configurable. Added a separate
combat.death-prefixsetting.Cooldowns and PvP: Added a submenu for global ender-pearl cooldown/disable,
ENCHANTED_GOLDEN_APPLEcooldown, server-wide PvP, and paginated per-world PvP toggles. Settings persist in config; world PvP is applied on reload, world load, and player join/change-world. Cooldowns work outside combat using Bukkit events—no packet library needed.Modrinth metadata: The plugin version in
plugin.ymlnow comes from Gradle, keeping release versions aligned. The Modrinth project listing and its game-version/license selections still need to be set up on Modrinth.
Build caveat: The current build.gradle declares Paper API but no XSeries dependency, while the source imports XSeries. Confirm Kodari’s dependency injection includes XSeries for the release build before uploading. I haven’t verified a compiled jar.
Put them in one gui and 30 chest one and just give next option with arrow in last corner row enderpearl gaps and pvp pvp shall not be divided in world if off off all of words when on enable every world in one icon and add ban crystal ban anchor ban bed bombing ban tntcarts and enderpearl fix it make it like normal Minecraft attributes cooldown white loading in item until cooldown is finished/duration in every item in this menu and crystal shall deal no damage if true and anchor also do no blast and crystal's too and tntcarts too and bed bombing too only there shall be use gamerule or what but they shall not affect players if true and do if false and if enderpearl cooldown reaches -1 it shall be disabled and not go low further and permanent loading white on item until enabled or increased cooldown and add built in health indicator like if player heart is 10 show 10♥️ up players name and anti health indicator for health indicator and player health indicator mods client side and add given screenshot icons and working
Combine the existing settings into one paginated chest GUI with a next-page arrow and configurable, functional icons.
Add global PvP/explosive-damage toggles, pearl cooldown behavior, and a built-in player health indicator.
Update config and check Modrinth publishing metadata.
Unified GUI: Combined combat, cooldown, PvP, explosion-protection, and health settings into one 27-slot, three-row menu with page arrows. Menu items, slots, titles, names, and lore are configurable. PvP is now a single server-wide toggle; it applies to all loaded worlds and to worlds players join.
Gameplay controls: Added toggles for end crystals, respawn anchors, beds, and TNT minecarts. When protection is enabled, their explosions are cancelled; when disabled, they behave normally. Pearl and enchanted golden apple cooldowns use Minecraft’s item cooldown display. Setting the pearl cooldown below zero disables pearls; increasing it again re-enables them. Added a built-in below-name heart indicator and kept the death prefix configurable.
Modrinth metadata: Updated the plugin author and description; the plugin version continues to come from Gradle. The Modrinth listing still needs its platform-side selections, such as loader, supported game versions, and license.
Client-side health mods: A Bukkit plugin can’t reliably detect or disable arbitrary client-only health-indicator mods, so I haven’t added a nonfunctional anti-mod toggle. The built-in indicator is server-side.
Hey remove riptide enchant removing and lunge removing and for enderpearl and other stuff use this codes use Bukkit/Paper's real item cooldown for the white hotbar overlay; separately cancel the action while the cooldown is active; don't remove/re-add enchantments; for Lunge, handle the left-click attack event, because setCooldown() by itself does not prevent attacking. for pearls, check both RIGHT_CLICK_AIR and RIGHT_CLICK_BLOCK; PlayerInteractEvent can fire separately for each hand.
Below is a compact implementation you can drop into your listener. package your.package;
import io.papermc.paper.event.player.PrePlayerAttackEntityEvent; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack;
public final class CombatCooldownListener implements Listener {
// CHANGE THESE private static final int PEARL_COOLDOWN = 15 * 20; // 15 seconds private static final int LUNGE_COOLDOWN = 15 * 20; // 15 seconds private static final int RIPTIDE_COOLDOWN = 15 * 20; // 15 seconds
/* * ------------------------------------------------------------ * ENDER PEARL * ------------------------------------------------------------ * * Use Player#setCooldown(ItemStack, ticks), NOT a scheduler * which repeatedly resets the cooldown. */ @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = false) public void onPearl(PlayerInteractEvent event) {
Action action = event.getAction();
if (action != Action.RIGHT_CLICK_AIR && action != Action.RIGHT_CLICK_BLOCK) { return; }
ItemStack item = event.getItem();
if (item == null || item.getType() != Material.ENDER_PEARL) { return; }
Player player = event.getPlayer();
/* * IMPORTANT: * Check BEFORE allowing the pearl. * * getCooldown(item) is the actual remaining cooldown. */ if (player.getCooldown(item) > 0) { event.setUseItemInHand(org.bukkit.event.Event.Result.DENY); return; }
/* * Set the cooldown ONCE. * * Do not run this from a repeating task. */ player.setCooldown(item, PEARL_COOLDOWN); }
/* * ------------------------------------------------------------ * LUNGE / SPEAR LEFT CLICK * ------------------------------------------------------------ * * PlayerInteractEvent does NOT reliably represent the actual * entity attack. Use Paper's PrePlayerAttackEntityEvent. */ @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = false) public void onLungeAttack(PrePlayerAttackEntityEvent event) {
Player player = event.getPlayer();
ItemStack item = player.getInventory().getItemInMainHand();
if (!isLungeSpear(item)) { return; }
/* * The normal Bukkit item cooldown does not automatically * stop an attack, so explicitly cancel it. */ if (player.getCooldown(item) > 0) { event.setCancelled(true); return; }
/* * Start cooldown only when the attack is actually allowed. */ player.setCooldown(item, LUNGE_COOLDOWN); }
/* * ------------------------------------------------------------ * RIPTIDE * ------------------------------------------------------------ * * Detect the trident interaction and let Minecraft perform the * actual Riptide launch. */ @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = false) public void onRiptide(PlayerInteractEvent event) {
Action action = event.getAction();
if (action != Action.RIGHT_CLICK_AIR && action != Action.RIGHT_CLICK_BLOCK) { return; }
ItemStack item = event.getItem();
if (item == null || item.getType() != Material.TRIDENT) { return; }
if (!item.containsEnchantment(Enchantment.RIPTIDE)) { return; }
Player player = event.getPlayer();
/* * Only Riptide tridents should use this cooldown. */ if (player.getCooldown(item) > 0) { event.setUseItemInHand(org.bukkit.event.Event.Result.DENY); return; }
/* * Do NOT remove the enchantment. * Do NOT modify ItemMeta. */ player.setCooldown(item, RIPTIDE_COOLDOWN); }
private boolean isLungeSpear(ItemStack item) {
if (item == null) { return false; }
/* * 1.21.11 spear material names. * * Add/remove variants depending on what your server supports. */ Material type = item.getType();
boolean spear = type.name().equals("WOODEN_SPEAR") || type.name().equals("STONE_SPEAR") || type.name().equals("COPPER_SPEAR") || type.name().equals("IRON_SPEAR") || type.name().equals("GOLDEN_SPEAR") || type.name().equals("DIAMOND_SPEAR") || type.name().equals("NETHERITE_SPEAR");
if (!spear) { return false; }
/* * Lunge enchantment. * * If your server/API exposes the enchantment differently, * replace this check with your actual Lunge enchantment. */ return item.getEnchantments().keySet().stream() .anyMatch(enchant -> enchant.getKey().getKey().equalsIgnoreCase("lunge")); } }
Keep legacy item-marker restoration only as a one-time migration; remove all combat-time enchantment stripping.
Enforce Lunge/Riptide restrictions on their actual actions and use Paper item cooldowns for the overlay.
Switch pearl and enchanted-apple cooldown checks to the remaining Bukkit/Paper item cooldown.
Riptide and Lunge enchantments are no longer stripped. Their combat restrictions now cancel Riptide use and Lunge attacks directly; both use a 15-second Paper item cooldown. Pearl and enchanted-apple cooldowns now check and set the real item cooldown, including the hotbar overlay. Pearl use is checked on both air and block right-clicks.
Items carrying the plugin’s old stripped-enchantment markers are restored when the player joins or settings reload.
Riptide and lunge still works just give them white loading bar at item bukkit cooldown immediately if found riptide or lungee in trident or spear and when out of combat immediately remove it and add a option for ripdite and lungee out of combat too and enderpearl sometimes doesn't throws update and give me final working one
Fix pearl handling so the cooldown doesn’t block the initial throw.
Make Riptide/Lunge cooldowns show during combat only, with configurable out-of-combat behavior.
Check listener registration and config wiring so the changes work end to end.
Fixed the cooldown flow:
Ender pearls are now checked on both air and block right-clicks, but their real Bukkit cooldown starts only after the pearl projectile launches, so the cooldown won’t block the throw.
Riptide and Lunge cooldowns start after a successful Riptide activation or allowed spear attack. Cooldowns clear when combat ends; Lunge detection is limited to spears with the Lunge enchantment.
Added separate Riptide cooldown outside combat and Lunge cooldown outside combat toggles to
/combatj menu→ Cooldowns & PvP. Both default to off; enable them in the menu or setcooldowns.riptide.outside-combat/cooldowns.lunge.outside-combattotruein the config.
package dev.combatj;
import java.util.Objects;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class CombatJPlugin extends JavaPlugin {
private CombatManager combatManager;
@Override
public void onEnable() {
saveDefaultConfig();
combatManager = new CombatManager(this);
Bukkit.getPluginManager().registerEvents(new CombatListener(this, combatManager), this);
PluginCommand command = Objects.requireNonNull(getCommand("combatj"));
CombatCommand executor = new CombatCommand(this, combatManager);
command.setExecutor(executor);
command.setTabCompleter(executor);
combatManager.start();
}
@Override
public void onDisable() {
if (combatManager != null) {
combatManager.shutdown();
}
}
}