Skip to content

Commit ebf213c

Browse files
committed
Add test Config
1 parent 6b4ff2c commit ebf213c

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
CONTAINER_ID=$(docker ps -q --filter ancestor=itzg/minecraft-server:latest)
5757
docker cp target/MinecraftServerAPI-*.jar $CONTAINER_ID:/data/plugins/
58+
docker cp docker/test.config.yml $CONTAINER_ID:/data/plugins/MinecraftServerAPI/config.yml
5859
5960
- name: Reload server and verify plugin
6061
run: |

docker/test.config.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This is the configuration file for the MinecraftServerAPI-Plugin.
2+
3+
# The port the API should listen on.
4+
port: 7000
5+
6+
# Enable swagger documentation for the API endpoints
7+
swagger: true
8+
9+
# If you want to enable Authentication, set this to true.
10+
# It is not recommended to disable this. If you do, everyone can access the API.
11+
authentication:
12+
enabled: true
13+
key: "TestKey"
14+
15+
# If you want to enable the debug mode, set this to true.
16+
# This will print more information to the console.
17+
debug: false
18+
19+
# Here you can turn on/off the different Webhooks.
20+
# If you want to disable a Webhook, set it to false.
21+
webhooks:
22+
23+
# You can set a list of URLs which should be called when the Webhook is triggered.
24+
# You can set multiple URLs here.
25+
urls:
26+
- "https://example.com/webhook1"
27+
- "https://example.com/webhook2"
28+
29+
# Here is a list of all available Webhooks.
30+
# You can enable or disable them here.
31+
# Or via the command /webhooks <disable/enable> <webhook>
32+
server_start: true
33+
server_stop: true
34+
plugin_disable: true
35+
plugin_enable: true
36+
block_break: false # This is disabled by default, because it can spam your Webhook-URLs.
37+
block_place: false # This is disabled by default, because it can spam your Webhook-URLs.
38+
block_burn: false # This is disabled by default, because it can spam your Webhook-URLs.
39+
block_redstone: false # This is disabled by default, because it can spam your Webhook-URLs.
40+
note_play: true
41+
sign_change: true
42+
enchant_item: true
43+
creeper_power: true
44+
creature_spawn: false # This is disabled by default, because it can spam your Webhook-URLs.
45+
entity_death: false # This is disabled by default, because it can spam your Webhook-URLs.
46+
entity_explode: true
47+
entity_shoot_bow: true
48+
entity_tame: true
49+
explosion_prime: true
50+
player_death: true
51+
brew: true
52+
craft_item: false # This is disabled by default, because it can spam your Webhook-URLs.
53+
furnace_burn: true # This is disabled by default, because it can spam your Webhook-URLs.
54+
furnace_smelt: true # This is disabled by default, because it can spam your Webhook-URLs.
55+
player_chat: false # This is disabled by default, because it delays the delivery of the message to the server.
56+
player_login: true
57+
player_command: false # This is disabled by default, because it delays the delivery of the command to the server.
58+
player_gamemode_change: true
59+
player_item_break: true
60+
player_join: true
61+
player_kick: true
62+
player_quit: true
63+
player_respawn: true
64+
lightning_strike: true
65+
weather_change: true
66+
thunder_change: true
67+
world_load: true
68+
world_save: true
69+
world_unload: true
70+
71+
# Here you can list an extra set of Files or Directories which should be saved by the Backup-System.
72+
# Following directories and files are already saved by default: ["world", "world_nether", "world_the_end", "plugins", "config", "server.properties", "banned-ips.json", "banned-players.json", "ops.json", "whitelist.json"]
73+
# e.g.: ["plugins/MyPlugin/config.yml", "plugins/MyPlugin/data/"]
74+
backup_files: []

0 commit comments

Comments
 (0)