Skip to content

Latest commit

 

History

History
134 lines (117 loc) · 6.57 KB

File metadata and controls

134 lines (117 loc) · 6.57 KB

FAQ - How can I add more CMI /msg commands?

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.

ℹ️ CMI can do more /msg commands like /w, /whisper and /tell

  • Take the server offline with /stop, and backup your (server) data before making any changes.

  • First, negate the minecraft.command.msg permission with your permission manager. (Affecting commands: /minecraft:msg, /minecraft:w, /minecraft:tell, /msg, /w, /tell) LuckPerms example: /lp group default permission set minecraft.command.msg false

Note: This stops the above list of vanilla commands. It does not stop /cmi msg, allowing us to make a few custom ones through the Custom Alias Editor feature of CMI.

Note: /cmi msg requires the player's base-commands permission node cmi.command: LuckPerms example: /lp group default permission set cmi.command true See note at the bottom of this page for additional permission information.

  • Next, update CMI's Settings/Alias.yml and set /chat from false (default) to true
  # /cmi msg $1-
  /msg:
    Enabled: true
    Tab: true
  • Next, save the below code to a file at this path: ~/plugins/CMI/CustomAlias/1MB-more-msg-cmds.yml, and type /cmi reload
CustomAlias:
  w:
    Cmds:
    - asPlayer! cmi msg $1-
    AddTabs: true
  whisper:
    Cmds:
    - asPlayer! cmi msg $1-
    AddTabs: true
  tell:
    Cmds:
    - asPlayer! cmi msg $1-
    AddTabs: true
  m:
    Cmds:
    - asPlayer! cmi msg $1-
    AddTabs: true
  pm:
    Cmds:
    - asPlayer! cmi msg $1-
    AddTabs: true

Note: You can customize the above commands as you desire.

  • Before we are done, as promised some additional permission information. /cmi checkperm msg discloses to us a few specific permissions, review them all for a custom setup and full control:
cmi.command.msg - Sends message to player
cmi.command.msg.[maingroupname].send - Allows to send private messages to specific player groups
cmi.command.msg.vanish - Allows to send private messages to vanished players
  • And finally, if you get red commands, then /stop, and start the server back up again.