Skip to content

Latest commit

 

History

History
115 lines (97 loc) · 7.03 KB

cmi-motd.md

File metadata and controls

115 lines (97 loc) · 7.03 KB

FAQ - How do I configure CMI for welcome message / motd?

FAQ Menu

CMI and Bungeecord info-, • Chance example, • CMI Chat manager, • Chat format info, • Chat filter, • Chat rooms, • CMI Commands info, • Custom Join and Leave, • CMI Economy manager, • Event commands, • Extending commands, • Getting started with CMI, • Glow info, • Create custom /help, • CMI Hex colors, • Importing data into CMI, • CMILib library info, • Customizing CMI Locale, • CMI Chat with LuckPerms prefix, • Migrate to MySQL database, • Player stuck in Mode?, • User-moderation info, • More message commands, • MOTD, • Parameters explained, • Ranks info, • Create custom /rules, • Running CMI, • Safety tips, • Specialized commands info, • Toggle example, • Trash example, • CMI Vote manager, • Worth info.

Official Zrips Links
  • Zrips Website
    https://www.zrips.net/
    The official website, wiki/documentation/information
  • Zrips Discord
    https://discord.gg/dDMamN4
    The official Discord community server with member-driven support
  • Zrips Github
    https://github.com/Zrips
    The place for bug reports and feature suggestions
Prerequisites
  • Buy and Download CMI (premium plugin)
    https://www.spigotmc.org/resources/3742/
    Get the CMI plugin if you haven't already, and then install it on all your servers
  • Also Download CMILib (free library) (more info)
    https://www.spigotmc.org/resources/87610/
    All Zrips plugins require the CMILib .jar file. Get it and also put it on all your servers.
  • All my FAQ pages have been written for Spigot / Paper 1.20.x and CMI 9.6.x.x or newer.
  • The mrfdev Github page is not an official resource, we're building up our knowledge base as a courtesy.
  • I am an admin on the Zrips Discord, this does not mean what I share on here is official.

This FAQ covers both the welcome message and the server list welcome message.


ℹ️ Customizing the Welcome Message (for when the player joins the server)

Optional video visually showing the /motd on 1MB https://youtu.be/3yjza6W2NNw

  • Start using CMI as Chat Manager, if you were using something else.
  • Update config.yml (see below) by finding:
# Defines name of customtext on players login to server. To disable just set name to non existing customText
Motd: welcomeMessage

If you wish to have it be called differently, you can change it there.

Next, inside the plugins/CMI/CustomText/ directory make a file called welcomeMessage.txt, below is an example of some basic text:

&3 Your Server »&b %server_online%/%server_max_players%&7 players: %onlineplayers_displaynames%

Of course, you can use the CMI Custom Text features to expand, using pagination, placeholders, clickable events, etc. https://www.zrips.net/cmi/custom-text/

Note that this should work out of the box if you have your CMI Chat configured. New and existing members will both see this welcome message when they join your server.

If you want to give first-time players something extra, you can customize the Settings/eventCommands.yml file at this section: (for example, you can make another .txt file or do whatever)

firstJoinServer:
  Enabled: false
  Commands:

ℹ️ Adding the /motd command (that the player can type in-game)

Optionally, you can make a /motd command. A lot of servers have it, this way players can pull up the message again later. To achieve this go in-game and create a new custom alias using: /cmi aliaseditor and click the green + to add a new command, type in the name motd and press enter. Then click on the new green + to add a command, which should be: asConsole! cmi ctext welcomeMessage [playerName].

ℹ️ Customizing the Welcome Message (the one in the client's server-list)

In the Minecraft Client players can add your server and see it in their list of servers. This also has a message of the day. If you want to use CMI to set this message you can do so with the command: /cmi setmotd &6hi \n &9welcome back

You can use legacy code & colors as well as the current modern RGB {#hex} colors. The \n in the example shows you how to split your text to a new line.