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

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

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

Source

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of MinecraftZach443 MinecraftZach443 Feb 08, 2014 at 06:37 UTC - 0 likes

    @ThePlayingNoob: Go

    as far as I know this still works with the latest version of Bukkit(1.7.2 beta).

    BFAK:90779438,f05c2491146ae599730698354b6df57033a19ec498764a80bfa09740f71777bf

  • Avatar of ThePlayingNoob ThePlayingNoob Dec 29, 2013 at 21:35 UTC - 0 likes

    @Devil_Boy I took a look at the source code and the last commit was in September, will you develop this plugin or let it die?

  • Avatar of ThePlayingNoob ThePlayingNoob Sep 24, 2013 at 18:58 UTC - 0 likes

    @Devil_Boy: Go Amazing, didn't expect that much! Oh and will you upload this plugin to McStats? md_5 is working on something better than McStats. Good luck anyway :) @Devil_Boy: Go

    Sorry my bad

  • Avatar of Devil_Boy Devil_Boy Sep 17, 2013 at 23:05 UTC - 1 like

    If you want to see how some of the new default configs will look: https://github.com/PG-Dev-Team/MessageChangerLite/tree/master/message-configs

    Each message configuration is custom-made. This allows the plugin to do take advantage of the full customization potential of each message.
    Unlike the old version of MessageChangerLite, the recode will allow for different message versions based on the receiver's permission. This will allow servers to tailor messages for specific needs. An example would be to use multi-world permissions to have people in differently themed worlds get different player join message syntax.

    Last edited Sep 17, 2013 by Devil_Boy

    http://pinoygamers.info/dev/pgdev-sig.png

  • Avatar of Devil_Boy Devil_Boy Sep 17, 2013 at 19:47 UTC - 0 likes

    @ThePlayingNoob: Go

    The updates all get pushed to the Git repository. You need to be looking at the latest commit.
    The commit you were looking at was just for that file, and that file hasn't been changed for 6 months.

    Last edited Sep 17, 2013 by Devil_Boy
  • Avatar of ThePlayingNoob ThePlayingNoob Sep 17, 2013 at 16:05 UTC - 0 likes

    @Devil_Boy: Go

    It says that it's for 1.5.2, are you updating the plugin on your PC or on GitHub?

    Last edited Sep 17, 2013 by ThePlayingNoob
  • Avatar of Devil_Boy Devil_Boy Sep 16, 2013 at 20:48 UTC - 0 likes

    You guys can check here for progress: https://github.com/PG-Dev-Team/MessageChangerLite/

  • Avatar of ThePlayingNoob ThePlayingNoob Sep 16, 2013 at 15:22 UTC - 0 likes

    @Devil_Boy: Go

    Ah okay anyway good luck with fixing the plugin!

  • Avatar of Devil_Boy Devil_Boy Sep 07, 2013 at 19:45 UTC - 0 likes

    @TheMcPlayer1997: Go

    That's the plan. However, if they change how they shut down the server, there is a chance it will break.

  • Avatar of TheMcPlayer1997 TheMcPlayer1997 Sep 07, 2013 at 19:22 UTC - 0 likes

    @Devil_Boy: Go

    Will it still work for all versions of bukkit after you recoded it?

Facts

Date created
Oct 04, 2011
Category
Last update
Sep 07, 2012
Development stage
Beta
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
MessageChangerLite
Downloads
14,068
Recent files

Authors