greatestbanana13

Plugin Explanation

This plugin allows you to disable Mace damage in specific worlds using a simple configuration file.

You can whitelist worlds in the config.yml. In any world that is listed:

Players cannot damage other players with a Mace

When a player left-clicks another player while holding a Mace, the attack is cancelled

A custom message is sent to the attacker, informing them that Mace damage is disabled in that world

Both the list of worlds and the message are fully editable in config.yml, allowing easy customization without touching the code.

Example Use Cases

Safe hubs or spawn worlds

PvP worlds where Maces are overpowered

Minigame lobbies or protected areas

If you want, I can also:

Rewrite this in very simple English

Make it sound more professional for a plugin page

Help you write an example config.yml

Shorten it into a one-line plugin summary

Kodari AI
KodariDec 31 at 4:04 pm 2,555 (v2)

I’ll create a Mace damage control plugin for specific worlds.

MaceDamageControl
A lightweight plugin that allows server administrators to disable Mace weapon damage in specific worlds. Features a configurable world whitelist where Mace attacks between players are automatically cancelled, with customizable denial messages sent to attackers. Perfect for protecting hubs, lobbies, and safe zones from overpowered Mace combat while maintaining normal gameplay in other areas.

Plugin created! Features:

  • Blocks Mace attacks in configured worlds

  • Sends customizable denial message

  • Easy config editing (worlds list + message)

  • Cross-version compatible via XSeries

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
6 109
src/main/java/com/macedamage/MaceDamageControl.java
package com.macedamage;

import org.bukkit.plugin.java.JavaPlugin;

public class MaceDamageControl extends JavaPlugin {
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        getServer().getPluginManager().registerEvents(new DamageListener(this), this);
        getLogger().info("MaceDamageControl enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("MaceDamageControl disabled!");
    }
}