KothWars v2.1
Complete Documentation
The ultimate KOTH (King of the Hill) plugin for Minecraft servers. Featuring advanced GUI system, web API integration, real-time event tracking, custom rewards, scheduling, and beautiful visual effects.
New Features v2.1
Main Features of v2.1
Version 2.1 introduces advanced features that enhance the administration and monitoring experience.
Integrated Web API
Complete web API system for real-time server event monitoring. Allows integration with external dashboards and web applications.
- Secure authentication with API Key
- Real-time events
- Complete historical log
- RESTful endpoints
Smart Alert System
Configure minute alerts before scheduled KOTHs start. Notifies players with customizable anticipation.
- Multiple configurable minutes
- Broadcast alerts
- Web event integration
- Per-KOTH configuration
Head in Chat
Displays the player's head in chat when capturing a KOTH. Impressive visual effect that enhances the capture experience.
- Smart skin cache
- Online/offline support
- Particle effects
- ASCII art rendering
Complete Admin GUI
Updated Required Permissions
Main permission: kothwars.admin
Automatically includes:
• kothwars.reload - Reload configuration
• kothwars.start - Start KOTHs
• kothwars.stop - Stop KOTHs
• kothwars.remove - Remove KOTHs
• kothwars.headcache - Manage head cache
• NEW: Full access to alert system
Access the Admin GUI
To open the administrative graphical interface, execute:
This command opens the main menu with enhanced options:
Minute Alert System
Configure Minute Alerts
In each KOTH's configuration menu, you'll find the "Alert Minutes" option. Allows configuration of multiple anticipation minutes for alerts.
Alert Configuration
Configuration Examples
Recommended configurations for different server types:
Head in Chat System
Display on Capture
When a player captures a KOTH, their head appears in chat in ASCII art format with enhanced visual effects. The system includes:
Management Commands
New commands to manage the head system:
Create a KOTH (Updated)
Enhanced Creation Process
The process now includes initial minute alert configuration and enhanced display options.
Select the KOTH Area
Selection Tool
When confirming creation, you'll receive a Blaze Rod with the following
information:
• KOTH Name
• Usage instructions
• Selected point status
• Calculated area information
Select Point A
Use the Blaze Rod and left click on a block to set Point A. You'll see blue/green particles and a confirmation message.
Point A set
Point A set at X:100.5 Y:64.0 Z:200.5
Select Point B
Use the Blaze Rod and right click on another block to set Point B. You'll see blue/light particles and a confirmation message.
Point B set
Point B set at X:110.5 Y:70.0 Z:210.5
View the Area
Once both points are selected, you'll see a particle effect showing the complete area with a golden outline. The system will automatically calculate:
Final Confirmation
After 3 seconds of having both points selected, the system will automatically confirm the area and:
Cancel Selection
If you need to cancel the selection at any time:
• Hold Shift and right click in the air
• This will remove the tool and cancel the process
• You'll see smoke particles and a cancellation message
Configure an Existing KOTH
Access KOTHs List
From the main menu, click "Manage KOTHs" to see all created KOTHs. Each KOTH is displayed with:
KOTH Configuration Menu
When clicking on a KOTH, a complete configuration menu opens with the following options:
Main Configuration
Glow System (Outline)
What is the Glow System?
The glow system allows players who are capturing a KOTH to glow with a specific color. This helps quickly identify who is capturing and adds an attractive visual effect.
Glow Configuration
In the KOTH configuration menu, click "Outline Settings" (brush icon). This will open the glow configuration menu with two main options:
Glow Options
Configure Glow Effect
Chroma Option (Rainbow)
The Chroma option makes the glow color change automatically creating a rainbow effect. When activated, the system cycles through all available colors.
Select Fixed Color
If Chroma is deactivated, you can select a fixed color from the available palette:
Each color has a corresponding hexadecimal code used in the PlaceholderAPI system.
How Glow Works Visually
The KothWars glow system works through Minecraft's scoreboard teams system. When a player starts capturing a KOTH:
Placeholder System
Requirement: PlaceholderAPI
To use KothWars placeholders, you need to have PlaceholderAPI installed. Placeholders can be used in scoreboards, chat, holograms, and any plugin that supports PlaceholderAPI.
Available Placeholders
KothWars offers two types of placeholders: for KOTH information and for the glow system.
KOTH Information
Placeholders to get specific information about a KOTH
%kothwars_capturing_NAME%
%kothwars_progress_NAME%
%kothwars_active_NAME%
Glow System
Placeholders to get player glow information
%kothwarsglow_hex%
%kothwarsglow_hex_no_hash%
Glow System Placeholders
%kothwarsglow_color%
Returns the legacy color code (& format) of the player's current glow.
Returned Values
GOLD → &6
YELLOW → &e
GREEN → &a
DARK_GREEN → &2
AQUA → &b
BLUE → &9
DARK_PURPLE → &5
LIGHT_PURPLE → &d
WHITE → &f
GRAY → &7
NONE → &f (white by default)
%kothwarsglow_hex%
Returns the hexadecimal code of the glow color with the # symbol.
Returned Values
GOLD → #FFAA00
YELLOW → #FFFF55
GREEN → #55FF55
DARK_GREEN → #00AA00
AQUA → #55FFFF
BLUE → #5555FF
DARK_PURPLE → #AA00AA
LIGHT_PURPLE → #FF55FF
WHITE → #FFFFFF
GRAY → #AAAAAA
NONE → #FFFFFF (white by default)
%kothwarsglow_hex_no_hash%
Returns the hexadecimal code of the glow color without the # symbol. Useful for plugins that don't accept the # symbol in colors.
%kothwarsglow_hex% returns: #FF5555
%kothwarsglow_hex_no_hash% returns: FF5555
Glow Display in Tab
For the glow to be visible in the player tab, you MUST use the placeholders in a tab plugin like TabList, TAB, or similar. Minecraft's glow system only shows colors in the tab if the player's name includes the color codes.
Configure Tab with Placeholders
To display glow in the tab, you need to use a tablist plugin that supports PlaceholderAPI. Here's a configuration example:
playerlist:
formats:
default: '%kothwarsglow_color%%player%'
# Example for TAB plugin:
playerlist:
%player%:
tabprefix: '%kothwarsglow_color%'
Why does it appear white without placeholder?
Minecraft's team system only assigns the color to the team, but for it to be visible in the tab, the player's name must contain the color code. Without the placeholder:
Solution: Use %kothwarsglow_color% in your tab plugin so the player's name includes the corresponding color code.
Functional Example
When everything is configured correctly:
KOTH Auto Suspension
What is Auto Suspension?
Auto suspension is a system that automatically stops a KOTH after an inactivity
period (no players in the area).
Purpose: Prevent KOTHs from remaining active indefinitely when no players are
participating, optimizing server performance.
How the System Works
The auto suspension system works in real time checking every second:
Usage Scenarios
Auto suspension is useful in these situations:
Configure Auto Suspension
Configuration in GUI
In the KOTH configuration menu, find "Auto Suspend Time" (funnel icon).
Suspension Configuration
Configuration in GUI:
• Left click: +30 seconds to suspension time
• Right click: -30 seconds to suspension time
• Minimum: 30 seconds
• Default value: 300 seconds (5 minutes)
Suspension Time Calculation
Suspension time is calculated in seconds. Here are some examples:
Suspension Process
When a KOTH is automatically suspended, the following occurs:
KOTH 'KOTHName' suspended due to inactivity
Reactivation after Suspension
An automatically suspended KOTH can be reactivated in several ways:
/koth start KOTHNameNote: Auto suspension does not delete the KOTH, only temporarily stops it. All configurations (rewards, glow, scheduling) are maintained.
Performance Optimization
Auto suspension significantly helps server performance:
Special Cases
There are situations where auto suspension behaves specially:
Summary: The auto suspension system is intelligent and only acts when there's truly no activity in the KOTH.