Ray's Plugin Documentation

Show Site Navigation

Configuration

To configure topics, messages and more, you will need to do this in the configuration files. There are two main configuration files within the plugin; config.yml and lang.yml

config.yml is where most of the plugins configuration, such as topics, messages, cooldown and more, are configured.

The lang.yml file is for those who want to change most of the plugins messages to either match a different language or just to change what is said when commands are executed.

If you want the plugin to use a different language for the messages, we have some premade configs on our Codeberg Repository which you can simply copy into the existing file. /RandomTopic/languages

If you do not find your preffered language, you can simply edit the lang.yml file yourself.



The configuration files for RandomTopic are stored at /plugins/RandomTopic/.

The configuration is pretty self-explanatory. You can edit the files and then save them. Once you've configured them to your liking, run the command /randomtopic-reload in game or through console to reload the config and language files.

For reference, the default configuration file is:

# RandomTopic Plugin Config
# Made by Ray_y
# Need help? Visit the Support Discord at: https://discord.gg/EshbnCjhfc

commandprefix: "§a[§fRandomTopic§a]"
# ^^ This changes the prefix of the command prefix.

randomTopicList:
  - Random Topic 1!
  - Random Topic 2!
  - Random Topic 3!
  - Random Topic 4!
# This is your customizable topic list! You can edit the list here or add or remove more elements which will be randomly selected
# when the randomtopic command is run! (/randomtopic)

check-for-updates-on-join: true
# ^^ Send a message to any player the joins with the permission "randomtopic.updatecheck" if there is an update
# that is available to download.

# -- **Messages** --
nopermsmsg: "§cYou do not have permission to use this command."
# ^^ Message that is sent when a user does not have permission to use a command in the plugin
cooldown-message: "§cThis command has been executed by another player already recently! Please wait %time-remaining% seconds."
# ^^ Message that is sent when a player executes the /randomtopic command but the command is on cooldown.
# Only works if global-cooldown is "enabled"

# -- **Other** --
global-cooldown: enabled
# ^^ Choice of whether a global cooldown is enabled on the /randomtopic command. This cooldown affects **ALL PLAYERS** not just the sender.
global-cooldown-time: 10
# ^^ If global-cooldown is enabled, this option will be how long the global command cooldown is. This is measured in seconds.