Wiki 9Minecraft Wiki 9Minecraft

Set Up a Duel Challenge System

Java EditionPluginGuides 4FAQ 10Related mods 48
DownloadCHC Custom Hit Command Plugin

Get the files on 9Minecraft

Contents (4)
  1. Create Your Trigger Weapon
  2. Configure the Duel Command
  3. Test the System
  4. Customize Messages

Create Your Trigger Weapon

Hold the item you want players to use to challenge each other to duels. This can be a sword, stick, or any custom item. Type /chc sethititem to register it as your trigger weapon.

Configure the Duel Command

In your plugin configuration file, set up a command that runs when someone hits another player with your trigger item. Use the %hitted_player% placeholder to automatically target whoever got hit. For example, you could run a command that teleports both players to an arena, starts a timer, or sends them a duel invitation message.

Test the System

Have two players in your server. One player should hold the registered trigger item and hit the other player. Watch the configured command execute automatically. Check that the %hitted_player% placeholder correctly identifies the person who was struck.

Customize Messages

Edit the plugin's message configuration to display custom text when a duel is triggered. You can use modern text formatting and color codes to make challenge notifications stand out in chat.

More guides for this mod