Event File:
Code (YAML):
test:
group
:
- test
# Chance for the event to trigger (if greater than 1, it will be forced back to between 0 and 1)
chance
: 0.3
# Day or Time, two options
type
: Time
# Days (if the event lasts multiple days, only effective when type=Day)
days
: 0
# Duration (event duration in seconds, only effective when type=Time)
duration
: 10
# BossBar countdown during the event
BossBar
:
# Enable or disable BossBar countdown
enable
: true
# BossBar color
color
: RED
# BossBar title
title
: test
# BossBar style
bar_style
: SOLID
# Commands executed when the event starts
start_command
:
- give
%online_player% apple
# Commands executed when the event ends
end_command
:
- give
%player_in_world% apple
# Commands executed when a player joins the event
on_join_command
:
- give
%player% apple
# Commands executed when a player leaves the event
on_quit_command
:
- give
%player% apple
normal:
group
:
- test
# Chance for the event to trigger
chance
: 0.7
# Day or Time, two options
type
: Time
days
: 0
duration
: 10
BossBar
:
# Enable or disable BossBar countdown
enable
: false
Config File:
Code (YAML):
# Selected language (zh_TW, en_US)
language
: zh_TW
database
:
# Choose the type of database: sqlite or mysql
type
: sqlite
# SQLite settings
sqlite:
file_path
: 'plugins/Emergency/SQL/emergency.db'
# MySQL settings
mysql:
host
: 'localhost'
port
: 3306
database
: 'emergencydb'
username
: 'your_username'
password
: 'your_password'
World File:
Code (YAML):
world
:
# World name
day_group
:
# Group that contains events with type=Day
- daytest
time_group
:
# Group that contains events with type=Time
- test
Permissions:
Code (Text):
emergency.reload
Allows the use of the /emergency reload command.
emergency.start
Allows the use of the /emergency start command.
emergency.pause
Allows the use of the /emergency pause command.
emergency.resume
Allows the use of the /emergency resume command.
MythicMobs Condition:
Code (YAML):
RandomSkeletonKing:
MobType
: SkeletonKing
Worlds
: world
Chance
: 0.2
Priority
: 2
Action
: REPLACE
Conditions
:
- outside true
- Emergency
(name=test,test2
)
The mob spawns when the event name is either test or test2.
RandomSkeletalKnight:
MobType
: SkeletalKnight
Worlds
: world
Chance
: 0.3
Priority
: 1
Action
: REPLACE
Conditions
:
- outside true
- Emergency
(name=test2
)
The mob spawns when the event name is test2.