shadowfuryx1

Develop a Minecraft Spigot/Paper plugin for version 1.21+ that introduces a custom weapon capable of bypassing the Totem of Undying and a global toggle system for Totem usage. The plugin should feature a command to obtain the custom weapon with specific permissions, an ability that instantly kills players when attacked with the weapon while preventing the Totem from activating, and a command to enable or disable Totem functionality server-wide with messages and effects for feedback. Ensure modular Java code with proper event handling, configuration options in config.yml, and include optional features such as cooldowns and a reload command for dynamic adjustments.

Kodari AI
KodariApr 23 at 5:50 am 12,450 (v2)

I’ll create a comprehensive Totem bypass plugin with a custom weapon system and global Totem control.

TotemBypass
A powerful plugin that introduces a custom weapon capable of bypassing Totem of Undying protection and provides server-wide Totem toggle functionality. Features include a special bypass weapon with configurable properties, instant kill mechanics that prevent Totem activation, global Totem enable/disable commands with visual feedback, cooldown system, and full configuration options. Includes permission-based commands for weapon distribution and Totem control with admin oversight capabilities.

All files have been created successfully!

Summary:

  • Custom bypass weapon with persistent data tracking, configurable appearance, glow effect, and cooldown system

  • Global totem toggle with enable/disable/toggle commands and server-wide broadcasts

  • Instant kill mechanics that mark players and prevent totem activation through high damage

  • Full configuration with messages, sounds, weapon properties, and cooldown settings

  • Permission-based commands for weapon distribution and totem control

  • Visual/audio feedback with particles and sounds on bypass kills

  • Tab completion for all commands and player names

  • Reload command for dynamic configuration updates without restart

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 706
src/main/java/com/plugin/totembypass/TotemBypass.java
package com.plugin.totembypass;

import com.plugin.totembypass.commands.TotemBypassCommand;
import com.plugin.totembypass.config.ConfigManager;
import com.plugin.totembypass.listeners.CombatListener;
import com.plugin.totembypass.listeners.TotemListener;
import com.plugin.totembypass.managers.TotemManager;
import com.plugin.totembypass.managers.WeaponManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TotemBypass extends JavaPlugin {
    
    private ConfigManager configManager;
    private TotemManager totemManager;
    private WeaponManager weaponManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.totemManager = new TotemManager(this);
        this.weaponManager = new WeaponManager(this);
        
        this.getCommand("totembypass").setExecutor(new TotemBypassCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new TotemListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        
        this.getLogger().info("TotemBypass has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.totemManager.clearMarkedPlayers();
        this.getLogger().info("TotemBypass has been disabled!");
    }
}