MessageChangerLite
MessageChangerLite
This plugin should be still working on newer builds, so please try before asking.
A simple plugin which allows you to change the server's default messages which will be displayed during login, logoff, server down, kick, server full and more to whatever you want.
If you would like assistance in person, you can find me in IRC as Zach443 here.
Features
- Change the server's default messages
- Display a message to the player when he changes worlds
- Implements Metrics so that I know it is worth doing this.
Based upon FrozenBrains MessageChanger.
Configuration
Will create a config.yml file on first run in the plugins/MessageChangerLite directory. Edit the messages as you like and restart or reload the server to make them active.
%pName is the playername
%world is the worldname
%msg is the default mesage
You can use colorcodes from here
The example config contains already 2 permission nodes for displaying custom messages based on permissions.
If the EVENT like SERVER_FULL doesn't exist, for example in permnode1 the plugin will fall back to the messages configured in the default section.
Permissions
Looking at the sample / default config:
- permnode1 is messagechanger.message.permnode1
- permnode2 is messagechanger.message.permnode2
Of course you can call permnode1 and permnode2 whatever you like.
NOTE: Permissions will be parsed based on the categoryOrder config node.
As soon as the plugin finds a permission it will try that category, if it doesn't find a message than it will fall back to the default!
Sample Config
# MessageChangerLite 2.0 by [Don Redhorse] # # Configuration File for MessageChangerLite. # # For detailed assistance please visit: http://dev.bukkit.org/server-mods/messagechangerlite/ #------- Default Configuration # Configuration Version configVer: '2.0' # Error Log Enabled # Enable logging to server console # Warning and Severe will still be logged. errorLogEnabled: true # Debug Log Enabled # Enable more logging.. could be messy! DebugLogEnabled: false # Check for Update # Will check if there is a new version of the plugin out. checkForUpdate: true # Auto Update Config # This will overwrite any changes outside the configuration parameters! autoUpdateConfig: false # Save Config # This will overwrite any changes outside the configuration parameters! # Only needed if you use ingame commands to change the configuration. saveConfig: false #-------- Plugin Configuration # You can use the following variables: # %pName = DisplayName of the Player # %world = World the player is in # %msg = default message # Order in which the categories are parsed categoryOrder: [permnode1, permnode2] message-category: default: KICK_FULL: '%msg' SERVER_STOP: 'Testing the server...' KICK_WHITELIST: '%msg' PLAYER_QUIT: '%msg' KICK_KICK_LEAVEMSG: '%msg' KICK_KICK_REASON: '%msg' PLAYER_JOIN: 'Hello &b%pName&f in world %world' CHANGED_WORLD: "Welcome traveler from %fromWorld in %world" KICK_BANNED: '%msg' permnode1: SERVER_STOP: 'Oh well...' permnode2: PLAYER_JOIN: 'Welcome the admin'
FAQ
- Q: Join and Leave messages are not working, the rest is.
A: You need to turn off Join / Leave messages in AdminCMD - Q: I see strange results with the permission nodes. Why?
A: I do parse the permission nodes in the categoryOrder, but I fall back to default if a permission node doesn't have a message.
So I don't check for more than ONE permission node!
ToDo
- Post any requests in the comments :)
Changelog
V2.10
- fixed an NPE if some of the default messages where missing
V 2.9
- added permissions check for messagechanger internally, sigh..
V 2.8
- fixed some issues with metrics
V 2.7
- fixed another bug introduced by bukkit
V 2.6
- fixed an issue which caused server crashes do to an bukkit issue
V 2.5
- added Metrics For More Info and Opt-Out
V 2.4
- ready for 1.1. R5
V 2.3
- added categoryOder config node which determines the order the message categories are processed.
You don't need to have the default category in, this will always be done last by default!
If you let your config autoupdate please remove the default category if you don't want it!
V 2.2
- added message displayed to player when he changes worlds
V 2.0
- added permission support for messages
- add log and config classes
- updateable config
- update check
v 1.2
Added %world variable
v 1.1
DisplayName is being used as Playername
v 1.0
Ininital Release
@Devil_Boy
Will it still work for all versions of bukkit after you recoded it?
Sorry guys, give me a bit. I'm recoding the plugin.
It'll have a different config system and simpler code.
I plan to design it so that it's easier to add new features.
Hello! I have 2 bugs and 1 suggestion: BUGS: 1) There is a bug with Essentials nickname. When a player left the game it will show his nickname with logout message: "[Player] Nicknamed left the game" but on join it's not showing his nickname which is bad. This could be solved by having a log file which would log everyone who have a (Essentials) nickname on logout and when they login the log file would use theirs nickname. 2) The plugin says that their is a config update where there is no. Suggestion: Could you add a option to change the "Max build height" message output? Thanks.
Any chance this works with 1.6.2?
@Devil_Boy
Any chance we could see Death messages? Only supporting one type of death message to keep it lightweight.
Hello, Can you make "Max build height" message output customize? Regards.
Need help setting this up? http://www.youtube.com/watch?v=8X8Ioj5o77w&feature=c4-overview&list=UUz-9bIkMFyu2hje9mdFSL2A
a video i found that helps!
Hello???
@Devil_Boy
Okay i test that and not long time ago i was talking about a bug with nickname, the nickname someone have isnt showed when the player join. I know how to resolve this, you need a data.yml file which will remember the nick name xx player have with messagechangerlite.data (for example) permission node. Would that be possible to adf?
@ThePlayingNoob
Mind testing this out for me?
The command to reload the configuration is: /messagechangerlite reload
/mcl works too
Permission node is: messagechangerlite.reload
@ThePlayingNoob
When I said "this plugin" I meant MessageChangerLite XD
I can add a command to reload the configuration.
I cant find the command for reloading the plugin. If there is no suck command that would be a great command to add.
@Devil_Boy
http://pastebin.com/CNWda52B My config And McMyAdmin 2 isnt a plugin its a control panel for minecraft servers. McMyAdmin doesnt have a open source code As far as i know.
@ThePlayingNoob
This plugin uses a very "hacky" method of trying to detect whether or not the server is stopping.
Mind showing me your configuration?
And, if possible, can you provide a link to McMyAdmin 2 source code?
@Malvagio87
Im running on Spigot.jar build #735 and it works great. You maybe did something wrong in config file?
@Devil_Boy
Hey, i use McMyAdmin 2 and the message that appears after i have Scheduled Restart Or A Manually Restart (When i say Manually Restart i mean the restart button in Status Tab) I can make a screenshot if you need but it say: 1 Nothing More. Oh and i use Spigot.jar build: #735
@Malvagio87
Can you paste an error log?
@ThePlayingNoob
What exactly is the message that appears? I believe McMyAdmin might be overriding the restart message o.o
does this plugin still work for 1.5.1 ... i thought i was getting errors on startup with it.
I found a bug: I have McMyAdmin 2 control panel, anyway i set a restart message in config: Restarting The Server, Brb and when the server auto restart this message appears: 1 Could you try to fix it?