CustomMessages
CustomMessages - Change Join and Leave Messages:
Version: v2.3.1
CustomMessages gives you and your users the ability to change their join and quit messages to whatever you want. This plugin can also change the global join and quit messages of everyone that isn't using the commands. It can also be expanded to include message variables from other plugins, creating a unified experience. Ill try my best to put any suggestions in. Vault is required to have /prefix, /suffix, /group message variables, and group specific messages.
Commands:
- /cm join [enable|disable|reset|message] - Modifies your join message.
- /cm join [player|group] [enable|disable|reset|message] - Modifies a group's or player's join message.
- /cm quit [enable|disable|reset|message] - Modifies your quit message.
- /cm quit [player|group] [enable|disable|reset|message] - Modifies a group's or player's quit message.
- /cm kick [enable|disable|reset|message] - Modifies the global quit message
- /cm globaljoin [enable|disable|reset|message] - Modifies global join message.
- /cm globalquit [enable|disable|reset|message] - Modifies global quit message.
- /cm firstjoin [enable|disable|reset|message] - Modifies the server's first join message.
- /cm colors - Shows all of the colors capable with the color codes. Use them iChat style in message (&colorcode).
- /cm variables - Shows all of the variables usable in messages.
- /cm reload - Reloads configuration from file
Current Message Variables
- /name - The name of the player
- /nname - The nickname of the player
- /count - The number of unique players on your server
- /online - The number of players currently online
- /maxonline - The maximum number of players allowed online
- /prefix - The player's prefix (Vault)
- /suffix - The player's suffix (Vault)
- /group - The player's primary group (Vault)
- /world - The current world the player is in
Permission Nodes:
- CustomMessages.* - All other nodes combined
- CustomMessages.join - Allows access to /cm join
- CustomMessages.join.other - Allows access to /cm join [player]
- CustomMessages.join.group - Allows access to /cm join [group]
- CustomMessages.quit - Allows access to /cm quit
- CustomMessages.quit.other - Allows access to /cm quit [player]
- CustomMessages.quit.group - Allows access to /cm quit [group]
- CustomMessages.kick - Allows access to /cm kick
- CustomMessages.globaljoin - Allows access to /cm globaljoin
- CustomMessages.globalquit - Allows access to /cm globalquit
- CustomMessages.firstjoin - Allows access to /cm firstjoin
- CustomMessages.noprefix - Removes the configurable prefix from your messages
- CustomMessages.reload - Allows access to /cm reload
/cm colors and /cm variables are available to everyone without a node.
Todo:
- Any other suggestions I get
- Death messages
- Server messages on connect (whitelist, banned, etc)
- Kick message
- Localization (if requested)?
-
View User Profile
-
Send Message
Posted May 1, 2012@BlocklyCrafter
It should be 1.2.5 compatible as is. Nothing has changed in the api so much that i need to update it for the new craftbukkits.
And an update, I have got about half of the /cm commands done. School is winding down, so i should be able to get the update out in about a week. Thank you for your patience and sorry for being so slow.
-
View User Profile
-
Send Message
Posted May 1, 20121.2.5 please? :I
-
View User Profile
-
Send Message
Posted Apr 11, 2012@Puremin0rez
Im not sure if i can do that because those scenarios are basically a server error, but ill find a way.
-
View User Profile
-
Send Message
Posted Apr 11, 2012If people get kicked or X out there Minecraft window, your plugin will not show the custom message. Please resolve this :) Thanks!
-
View User Profile
-
Send Message
Posted Apr 10, 2012Ok, Back from work spree again. Ill start on the /cm and invis login and first join stuff.
-
View User Profile
-
Send Message
Posted Apr 2, 2012thank you for this plugin, I tested on v1.2.4 r1.0 I suggest to add a invisible login too.
-
View User Profile
-
Send Message
Posted Mar 25, 2012Any chance we can get a /cm reload to load changes made by hand to the config?
-
View User Profile
-
Send Message
Posted Mar 24, 2012Would be perfect after current To-Do is completed, except one thing:
If players miss a certain permission, their login/logout message is marked somehow (e.g. prefix), so they cannot fake chat messages or stuff.
I'll keep watching.
-
View User Profile
-
Send Message
Posted Mar 20, 2012Is it possible to set up a message for an entire PEX group?
Great plugin btw
-
View User Profile
-
Send Message
Posted Mar 19, 2012Can you please add a reload command when editing the comfig.yml file by hand? Thanks!
-
View User Profile
-
Send Message
Posted Mar 16, 2012very good
-
View User Profile
-
Send Message
Posted Feb 12, 2012When i join the game it says player name joins, but when i leave it says [owner]player name left the game.
How can i get both to have the permissions name that says {owner} player name on both join and leave
Great Plugin btw
-
View User Profile
-
Send Message
Posted Jan 30, 2012Any idea when the next update will be coming? It still works with 1.1, but an update on if/when you plan to add those new features would be awesome. :D
Thanks!
- Llamasquishy
-
View User Profile
-
Send Message
Posted Jan 16, 2012Great plugin - if only it supported "/country" :)
-
View User Profile
-
Send Message
Posted Jan 8, 2012@rockxz3
That looks to be a problem with craftbukkit in your situation. If your CraftBukkit is less than 1.0.1 RB1, then i would suggest updating. I think that would be build number 1597. It may also happen if you are the first player to join the server. I am not completly sure of that though.
-
View User Profile
-
Send Message
Posted Jan 7, 2012Doesn't work, I get this awesome error!
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.bukkit.OfflinePlayer; at org.bukkit.craftbukkit.CraftServer.getOfflinePlayers(CraftServer.java:941) at com.psyco.tplmc.CustomMessages.configuration.Configuration.getColoredMessage(Configuration.java:58) at com.psyco.tplmc.CustomMessages.pListener.onPlayerJoin(pListener.java:33) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:268) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129) at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:113) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39) at net.minecraft.server.NetworkListenThread.a(SourceFile:94) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
-
View User Profile
-
Send Message
Posted Jan 4, 2012@psycowithespn
Yeah, that's basically what I'm looking for. I basically want it to announce to everyone on the server when a new player joins:
"fireling has joined the server for the first time!"
"Please welcome our 1044th Guest!"
Another thing you could do for prefixes and suffixes is to set them up internally in your plugin (or rather, allow the user to do so). A great example of that would be in MCDocs' config.yml file. Here's a link, it should be pretty self-explanatory. http://pastebin.com/9e67W3V4http://pastebin.com/9e67W3V4
I'm not sure - as I am not a coder myself - but I assume that doing it that way would be easier, especially if you want it to work easily with any permissions system.
Also, the main reason I'd like it to support prefixes and suffixes is so that I can have the username the same color as it shows up as when they chat in-game.
And yes, using /cm for everything sounds like a very good idea.
Thanks!
- Llamasquishy
-
View User Profile
-
Send Message
Posted Jan 3, 2012@Llamasquishy
Ok, so if i get what you are saying, you want something like a message that is broadcast to the server when a new player joins? If so, i can do that. The groups and prefixes and that i would have to look into, though. I would like it to support as many plugins as possible. I do think i need to redo all of the commands into a central /cm command though. Ill figure everything out tomorrow. Thanks for the suggestions.
-
View User Profile
-
Send Message
Posted Jan 3, 2012@psycowithespn
Thanks again! However, I have one more suggestion which you can hopefully accomodate. :)
Would you be able to add the ability to change custom messages for new players? I didn't realise that wasn't already included in the plugin, and I'd like to only show the unique player count when a new player joins. Thanks!
Also just thought of another thing, though it is not quite as pertinent and probably also slightly harder to implement - would it be possible to add the ability to use the prefix and suffix for the player's group and possibly the user's prefix and suffix to the messages? Maybe via /usuffix or /gprefix or something. For example...
Say Player1 is in the Admin group, with &a in the suffix. (Using Essentials' GroupManager.
Type this: /customglobaljoin /suffix/player &ejoined the game!
Output when Player1 joins:
Player1 has joined the game!
("Player1" would be in &c {red}, and the rest would be &e {yellow}.
Hopefully this makes sense. Thanks again again!
- Llamasquishy
-
View User Profile
-
Send Message
Posted Jan 3, 2012Ok! Thanks a lot! I installed JDK7 anyway!