Search…
Config overview
This page will have an overview of the plugins configuration.

Configuration Issues

One of the current issues with loading new things into the config is that it doesn't save the comments nor does it keep the current layout of the config.

Config File when it first Loads

1
#
2
# - THANK YOU FOR DOWNLOADING -
3
#
4
# Thank you so much for downloading my plugin! <3
5
# This plugin is a basic AutoAnnouncer that announces different
6
# text which is customizable and you are able to add as many announcers
7
# as you want. All the announcers are selected at random and then put into
8
# the chat for every player to see after the designated time in "Delay"
9
#
10
# If you require any support or you want to add a suggestion then please
11
# add me on discord (PolarDyth#9999) or join my discord (https://discord.gg/94k5qMb)
12
#
13
# In "AutoAnnouncer" there are currently 2 things that can be customized.
14
# First is the "Announcers" this requires a String for every line
15
# (a string is just a line of text) and the Delay is in seconds and requires
16
# a number and only a number.
17
#
18
# Standard bukkit codes are fully supported!
19
20
AutoAnnouncer:
21
AnnouncerMessage:
22
Announcer:
23
- "You can join our discord at https://discord.gg/25TVBY"
24
- "Don't forget to vote for the server using /vote!"
25
- "Come visit our shop: https://shop.example.com"
26
Delay: 5 seconds
27
Enabled: true
28
AnnouncerHeader:
29
Message: "&7[---------&8[&4&lAnnouncement&8]&7---------]"
30
Enabled: true
31
Enable_Space: true
32
AnnouncerFooter:
33
# PlaceholderAPI is fully supported with this plugin.
34
Message: "&4Thank you for playing on play.example.com, %server_online% out of %server_max_players% are online"
35
Enabled: true
36
Enable_Space: true
37
38
Prefix_Settings:
39
Prefix: "&8[&4&lAnnouncer&8]"
40
Enable_Prefix: true
41
42
Commands:
43
Reload:
44
Message: "&6{plugin_name} {plugin_version} has been reloaded."
45
Enable: true
46
Disable_Message: 'Command disabled! If you want to enable this command set "Enabled" in the config to true!'
47
48
Permission:
49
Reload_Permission: "announcer.reload"
50
Reload_NoPermission_Message: "Insufficient permission (announcer.reload)"
51
52
# Don't mess anything below this comment
53
54
Log_Lag_Over_Milis: 100
55
Debug: []
56
Version: 1
Copied!

Config when I add new lines to the config

1
# -------------------------------------------------------------------------------------------
2
#
3
# Your file has been automatically updated at 03.08.2020 12:12:57
4
# to AutoAnnouncer 1.0.0
5
#
6
# Unfortunatelly, due to how Bukkit saves all .yml files, it was not possible
7
# preserve the documentation comments in your file. We apologize.
8
#
9
# If you'd like to view the default file, you can either:
10
# a) Open the AutoAnnouncer-1.0.0.jar with a WinRar or similar
11
# b) or, join my discord to get support!
12
#
13
# -------------------------------------------------------------------------------------------
14
15
AutoAnnouncer:
16
AnnouncerMessage:
17
Announcer:
18
- Change me!
19
- New line!
20
- Join my discord!
21
Delay: 5 seconds
22
Enabled: true
23
AnnouncerHeader:
24
Message: '&7[---------&8[&4&lAnnouncement&8]&7---------]'
25
Enabled: false
26
Enable_Space: true
27
AnnouncerFooter:
28
Message: '&4Thank you for playing on play.example.com, %server_online% out of
29
%server_max_players% are online'
30
Enabled: false
31
Enable_Space: true
32
Prefix_Settings:
33
Prefix: '&8[&4&lAnnouncer&8]'
34
Enable_Prefix: true
35
Debug: []
36
Version: 1
37
Log_Lag_Over_Milis: 100
38
Permission:
39
Reload_Permission: announcer.reload
40
Reload_NoPermission_Message: Insufficient permission (announcer.reload)
41
Commands:
42
Reload:
43
Message: '&6{plugin_name} {plugin_version} has been reloaded.'
44
Enable: true
45
Disable_Message: Command disabled! If you want to enable this command set "Enabled"
46
in the config to true!
Copied!
If you want your config to look better then download a software called WinRAR and right-click the jar and press Open with WinRAR then open config.yml and copy and paste the relevant information over.
Another issue with the config is that it won't remove old config lines. Say for example I remove "Enabled: true" in the "Announcers" section it will not be removed from your config. This shouldn't affect anything but if again, you want it to look better then you can either open with WinRAR or remove the line yourself.
Copy link