-
-
Notifications
You must be signed in to change notification settings - Fork 28
Local Nicknames
While there is a standard way for spigot plugins to make their set prefixes etc. available for MultiChat to use (Vault), there is no set way for them to do this with nicknames. As such, it is impossible for MultiChat to use the nicknames set by other plugins.
MultiChat hence features its own nickname command which can act as a replacement for the nickname command in plugins like Essentials. This command is part of MultiChatSpigot/MultiChatSponge, the local part of MultiChat that runs on your spigot/sponge server rather than on the proxy. This is because it is designed to emulate your normal nicknaming system.
IF YOU ARE LOOKING FOR THE SQLITE AND MYSQL OPTIONS - CLICK HERE
The /nick command allows you to give a player a nickname. For example:
/nick Revilo410 Revilo
This will make my name in chat display as Revilo instead of Revilo410. To disable it we can use:
/nick Revilo410 off
Permission (to set your own nickname): multichatspigot.nick.self
(multichatsponge.nick.self
for SPONGE)
Permission (to set others nicknames): multichatspigot.nick.others
(multichatsponge.nick.others
for SPONGE)
Permission (to be able to impersonate another players real name): multichatspigot.nick.impersonate
(multichatsponge.nick.impersonate
for SPONGE)
Other permissions (SPIGOT ONLY):
multichatspigot.nick.special
Ability to use special characters in nicknames (anything other than "^[a-zA-Z0-9&_]+$")
multichatspigot.nick.color/colour
(Ability to use colour codes in nicknames) (&a &b &1 &2 etc.)
multichatspigot.nick.format
(Ability to use format codes in nicknames) (&l &o etc.)
multichatspigot.nick.anylength
(Allows nickname longer than 20 characters)
The /realname command allows a player to find the real name of someone with a nickname. It is currently only avaliable on SPIGOT (not Sponge).
/realname <nickname>
Permission: multichatspigot.realname
The realname command also supports partial matches (if you have the appropriate permission). These are by default limited to 10 results, but you can list ALL the results that match if you have the right permission. The reason this limit is in place by default is that the task could be computationally expensive, and you dont want players spamming /realname .*
and listing everyone on your entire network's nickname...
multichatspigot.realname.partial
(Permission to allow partial nicknames to be found for a /realname query)
multichatspigot.realname.nolimit
(Allows ALL matches for a realname query to be shown instead of limit 10)
How do partial matches work in /realname?
Assume I have 3 players on my servers with nicknames, "CrafterBoy, MinerGirl and MinecraftPlayer123".
If I run /realname CrafterBoy
it will return the exact match for this nickname.
If I run /realname Crafter
then MultiChat will say no exact match could be found, but will list people with possible matches, in this case it will be 'CrafterBoy'.
If I run /realname m
then the plugin will again say no exact matches could be found, but will list MinerGirl and MinecraftPlayer123 as partial matches because they both start with 'm'.
The way this search for partial matches works is as follows:
- MultiChat searches for any nicknames starting with the search term
- If no matches were found then MultiChat searches for nicknames containing the search term
- If still no match was found, then MultiChat will treat the search term as a regular expression (regex) and see if it finds anyone that way.
This means that the most relevant results will always be displayed. If you have players with nickname MinecraftPlayer123, and IPlayMinecraft, then doing /realname Minecraft will return the former. This makes the most sense! If you were searcing for the latter player, you would likely not search for "Minecraft" in /realname!
The /username command allows a player to find the username of someone if you cannot remember it exactly. It is currently only avaliable on SPIGOT (not Sponge).
/username <query>
Permission: multichatspigot.username
The username command also supports partial matches (if you have the appropriate permission). These are by default limited to 10 results, but you can list ALL the results that match if you have the right permission. The reason this limit is in place by default is that the task could be computationally expensive, and you dont want players spamming /username .*
and listing everyone on your entire network's nickname...
multichatspigot.username.partial
(Permission to allow partial names to be found for a /username query)
multichatspigot.username.nolimit
(Allows ALL matches for a name query to be shown instead of limit 10)
How do partial matches work in /username?
Exactly the same as for /realname above. Please see that section!
MultiChatSpigot now offers 3 formats for storing nickname data: File based, SQLite and MySQL.
By default the nicknames are stored in a single file in the MultiChatSpigot folder. However, many users wished for a more optimised setup, so now (as of MultiChat 1.8) you can choose to store this nickname data in SQLite or MySQL. SQLite creates a local database file where data is stored. MySQL requires you to have an external MySQL server to connect to. The details for connecting to your server are in spigotconfig.yml.
The benefit of using a MySQL server is that you can sync your nickname data across all your local servers. This means that multiple spigot servers can share the same nicknames, and if you set a nickname on one server then it will be mirrored on all the others.
In order to convert existing file based nickname storage to SQL storage you need to run the multichatspigot migratetosql command from the spigot console. This goes through each user individually and adds their nicknames to your database. In order for this to work correctly an existing nickname file needs to be in the MultiChatSpigot folder, and the server must be restarted with nickname_sql enabled.
MultiChat is developed by Revilo410 (Oliver Martin)
To download the latest release:
Click Here