Skip to main content

Configuration

The main configuration file is located at plugins/CocoEOTW/config.yml.

General Settingsโ€‹

prefix: "&8[&#FBCD08E&#F1BF05O&#E8B003T&#DEA200W&8] &7ยป"

settings:
messages_file: "messages_en.yml" # Language file to use

Database Configurationโ€‹

CocoEOTW supports SQLite and MySQL databases for storing player data.

settings:
database:
type: "sqlite" # Options: sqlite, mysql
prefix: "cocoeotw_"

mysql:
host: "localhost"
port: 3306
database: "eotw"
username: "root"
password: ""

sqlite:
file: "eotw.db"

Feature Settingsโ€‹

Elytra Restrictionโ€‹

settings:
elytra:
enabled: false # Disable elytra during events

Border Enderpearlโ€‹

settings:
border_enderpearl:
enabled: true # Prevent enderpearls outside border

Custom Death Messagesโ€‹

settings:
death_message:
enabled: true
message: "&#FF0000%player% &fdeath by &c%killer% &fwith &#FF0000%item% &fitem."
empty_item_name: "HAND"

Revive Systemโ€‹

Configure how dead players are handled.

settings:
revive:
type: spectate # Options: spectate, kick
delay: 5 # Seconds before respawn
invincibility: 5 # Invincibility after revive
staff_can_see_vanished: true
spectator_prefix: "&f๐Ÿ‘ป "
gamemode: "survival"
kick_message: "&#FF0000You have been kicked from the server."

spectator_item:
material: "COMPASS"
name: "&ePlayer Selector"
inventory_slot: 4
lore:
- "&7Right click to list all players."

Revive Types:

  • spectate - Dead players become spectators
  • kick - Dead players are kicked from the server

IP Limitโ€‹

Prevent multiple accounts from the same IP.

settings:
max_player_per_ip:
enabled: true
max: 1 # Maximum players per IP

Spawn Configurationโ€‹

settings:
spawn:
enabled: true
location: "world, 80, 80, 80" # Format: world, x, y, z

Team Integrationโ€‹

Integrate with team/guild plugins.

settings:
team:
enabled: true
type: "cocoguild" # Options: cocoguild, PlaceholderAPI
placeholder: "%cocoguild_guild_name%"
no_team_placeholder: "---"

Scoreboardโ€‹

Display real-time statistics on the scoreboard.

settings:
scoreboard:
enabled: true
refresh_time: 2 # Seconds between updates
title: "&#FBCD08&lE&#F1BF05&lO&#E8B003&lT&#DEA200&lW"
lines:
- " "
- "&#FBCD08%player% &7(%cocoeotw_player_alive%&7)"
- " &8โ€ข &fKills: &#FBCD08%cocoeotw_player_kills% ๐Ÿ”ฑ"
- " &8โ€ข &fTeam: &#FBCD08%cocoeotw_team_name% ๐Ÿณ"
- " &8โ€ข &fTeam kills: &#FBCD08%cocoeotw_team_kills% ๐Ÿ”ฑ"
- " "
- "&#FBCD08Statistics"
- " &8โ€ข &fPlayers: &#FBCD08%cocoeotw_alive_players_count% ๐Ÿ‘ค"
- " &8โ€ข &fTeams: &#FBCD08%cocoeotw_alive_teams_count% ๐Ÿณ"
- " &8โ€ข &fBorder: &#FBCD08%cocoeotw_border_size% โญ•"
- ""
- "&#FBCD08 dc.cocostudios.net"

Start Timerโ€‹

Countdown before EOTW starts.

settings:
start:
timer:
enabled: true
time: 120 # Seconds
value: "&#08FB22%remained_seconds% &fseconds remained"
commands:
enabled: true
commands:
- "[TITLE] &#08FB22The EOTW has started!"

End Commandsโ€‹

Commands to run when EOTW ends.

settings:
end:
commands:
enabled: true
commands:
- "[COMMAND] whitelist on"

Action Barโ€‹

Display information in the action bar.

settings:
actionbar:
enabled: true
refresh_time: 2
value: "&#FF0000%player_alive% &fPlayers alive &7| &#FF0000%team_alive% &fTeams alive"

Command Blockerโ€‹

Block specific commands during events.

settings:
blacklisted_commands:
enabled: true
commands:
- "spawn"
subcommands:
- "tp "

Item Limitationsโ€‹

Limit specific items during the event.

settings:
limitations:
enabled: true
items:
experience_bottle: -1 # -1 = blocked
enchanted_golden_apple: 128 # Max stack size

Whitelist & Ticketsโ€‹

Configure the ticket purchase system.

settings:
whitelist:
enabled: true
max_tickets: -1 # -1 for unlimited
ticket_price: 1000

currency:
placeholder: "%vault_eco_balance%"
give_command: "eco give {player} {amount}"
take_command: "eco take {player} {amount}"
allow_decimals: true

Events Configurationโ€‹

Configure First Kill and Bounty events.

settings:
events:
enabled: true

firstkill:
enabled: true
timeout: 200 # Seconds
reward:
- "[COMMAND] coin give %player% 300"

bounty:
enabled: true
glowing: true # Target glows
timeout: 200 # Seconds
reward:
- "[COMMAND] coin give %player% 500"

Protection Settingsโ€‹

Configure world protections during phases.

settings:
protection:
enabled: true

waiting:
protections:
disable_block_break: true
disable_block_place: true
disable_interaction: true
disable_pvp: true

eotw:
protections:
disable_block_break: true
disable_block_place: true
disable_interaction: true
disable_pvp: false # PvP enabled during EOTW

Toplistโ€‹

Configure the winner announcement.

settings:
toplist:
message: |
&7===================================
&r
<center>&#FBCD08&lEOTW TOPLIST</center>
&r
&#f5c400#1 &f%cocoeotw_top1_team%
&#f5c400#2 &f%cocoeotw_top2_team%
&#f5c400#3 &f%cocoeotw_top3_team%
&r
&7===================================
actions:
0:
- "[TITLE] &#FBCD08&lThe winner team is %cocoeotw_top1_team%!"
- "[SUBTITLE] &fCongratulations!"
- "[BROADCAST_TOPLIST_MESSAGE]"

Command Actionsโ€‹

Available action types for commands:

  • [COMMAND] - Execute as console
  • [TITLE] - Show title to all players
  • [SUBTITLE] - Show subtitle
  • [BROADCAST] - Broadcast message
  • [EFFECT] - Apply effect (format: effect;duration;amplifier)
  • [BROADCAST_TOPLIST_MESSAGE] - Broadcast the toplist