Inactive [ADMN] MessageChanger v1.01 - Change the server's default messages [953]

Discussion in 'Inactive/Unsupported Plugins' started by FrozenBrain, Apr 17, 2011.

  1. Offline

    FrozenBrain

    MessageChanger - Change the server's default messages
    Version: v1.01
    CraftBukkit Build: 953


    [​IMG]

    This simple plugin allows you to change the server's default messages to whatever you want.

    Features:
    • Change the server's default messages
    • Use different messages for different worlds, groups and users
    Download MessageChanger v1.01
    Source Code
    [​IMG]

    Configuration:
    Show Spoiler

    MessageChanger 1.00+ works side-by-side with Permissions 3. That means, that you'll have to add some keys to your permissions files.

    Example (groups.yml):
    Code:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
                messageChanger:
                    KICK_KICK_REASON: '&4Pwned by admin'
                    KICK_FULL: '&eThe server is full, sorry.'
            inheritance:
    Easy as that. Just add a new node called "messageChanger" as a child of the "info" node of either a group or a player. Then add the following keys as childs of the new node:
    Code:
    Key			+ You get the message if ...
    ------------------------+-----------------------------------------------------------
    KICK_FULL		+ The server is full.
    KICK_WHITELIST		+ you're not white-listed.
    KICK_KICK_LEAVEMSG	+ you get kicked (everybody can see this in the chat).
    KICK_KICK_REASON	+ you get kicked.
    PLAYER_JOIN		+ you join the server (everybody can see this in the chat).
    PLAYER_QUIT		+ you leave the server (everybody can see this in the chat).
    KICK_BANNED		+ you're banned from the server.
    SERVER_STOP		+ the server is shutting down (use '' or '%msg' for the usual error message).
    If you need help, feel free to ask :)

    Wildcards:
    %pName - the player's name
    %msg - the original message

    If you want to use colors, use the color codes &0 - &f (click me).


    Todo:
    • Add support for multiple colors - Done!
    • Different messages per group - Done!
    • Stop sending an error to the clients when stopping the server (send a custom message instead) - Done and fixed!
    • Add more wildcards (request some :) )
    Changelog:
    Version 1.01
    • Fixed an NPE
    Version 1.00
    • MessageChanger is now working side-by-side with Permissions 3
      • You have to reconfigure the plugin, read the "Configuration" part above!
    Show Spoiler

    Version 0.24
    • Updated for Minecraft 1.6.6 (CraftBukkit b818)
    • SERVER_STOP is now working correctly, yey!
    Version 0.23
    • Added support for other chat related plugins (needs testing)
    • Updated for CB 803
    Version 0.22
    • Fixed PLAYER_QUIT
    • Updated for CB 733
    Version 0.21
    • Added SERVER_STOP
    Version 0.20
    • Multiworld support
    • Permissions support
    • Added the '%msg' wildcard (see above)
    Version 0.12
    • Added support for colored messages
    Version 0.11
    • Remove messages completely (simply by setting them to '')
    Version 0.1
    • First public release

    Have fun :)
     
  2. Offline

    DeaGato

    Yes, it accepts the accented characters.

    But, remember to save the config's file with utf-8 codify.
     
  3. Offline

    DeaGato

    The message "PLAYER_QUIT" with #714 doesn't work. I see the default message.
     
  4. Offline

    FrozenBrain

    I'm going to fix this as soon as we get a new recommended build.
     
  5. Offline

    DeaGato

    Ok, thanks.
     
  6. Offline

    spunkiie

    Can't hide the join/left messages with this plugin, here's the config example i'm using:

    PLAYER_QUIT:''
     
  7. Offline

    FrozenBrain

    Seriously, learn to read.

    I'll maybe release a testing build today.
     
  8. Offline

    Jackool Jackool

    I
    Hey, this is my first post on this forum; and I think that you should release a testing build today, that'd be great.
    But obviously totally up to you.
     
  9. Offline

    FrozenBrain

    Well, it seems that there's a bug in craftbukkit. Can't do much about it.
     
  10. Offline

    spunkiie

    waiting for the test build.

    Have an 160+ server, and all those join/left messages are flooding completely my chat
     
  11. Offline

    spunkiie

    any update on this ?
     
  12. Offline

    FrozenBrain

     
  13. Offline

    spunkiie

    My intention is just DISABLE the joined/left messages on my server. This function is as well affected by the CB bug ?
     
  14. Offline

    FrozenBrain

    Yes. It's exactly the same bug.
     
  15. Offline

    spunkiie

    oh, so let's w8 :D

    #733
    Fixed PlayerQuitEvent.setMessage()

    WoW!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  16. Offline

    FrozenBrain

    Told you it was a bug in CraftBukkit ^^

    Update's out, see first post.
     
  17. Offline

    spunkiie

    works like a charm :D

    ty
     
  18. Offline

    Samylots

    Hum... i speak french ... so...

    I want to set FRENCH words and i put:
    ex:
    PLAYER_QUIT: '%name s'est déconnecté'

    And the file is saved on the UTF-8 for the character ''é''
    BUT for the " ' " it cause a bug on the file...
    SO i put:
    PLAYER_QUIT: "%name s'est déconnecté"
    but with these ->"<- it cause another bug...

    Please, can you help me?

    And ... Sorry for my BAD ENGLISH !!!
     
  19. Offline

    Samylots

  20. Offline

    FrozenBrain

    Code:
    PLAYER_QUIT: "%name s'est déconnecté"
    Is working fine for me. Make sure the file uses the UTF-8 charset.

    You can also use the following:
    Code:
    PLAYER_QUIT: '%name s''est déconnecté'
     
  21. Offline

    Samylots

    Hum, thanks, but when i log, the text are white and not yellow ...
     
  22. Offline

    FrozenBrain

    Write '&e' (without the '') in front of your message.
     
  23. Offline

    kahlilnc

    You should add message changer to Unknown Commands. If you leave it blank nothing shows.
     
  24. Offline

    MGieni09

    Is it possible to have KICK_KICK_LEAVEMSG include the variable KICK_KICK_REASON? I've seen it done in a server I used to play in but I have no idea what plugin was used.

    Is there a way I could accomplish that? Here's an example:

    Obviously <reason> would be a different variable. Is there a list of variables I am able to use? Is there also a simpler way of broadcasting to the server who got kicked and why? I would like to have people publicly humiliated for their wrong-doing. The message that used to be displayed in the other server was like this:

    How do I do this?
     
  25. Offline

    iamthekitty

    Works for 740
     
  26. First, thanks for this plugin. But, is it possible to leave the choice in the config file if "/reload" has to kick the players or not ? I think that's not possible to know if the server is going to stop or reload, no ?
     
    emoknight likes this.
  27. Offline

    FrozenBrain

    Sure, you can set the message to '' to stop the plugin from kicking the players everytime the server reloads or stops. I can't check if the server stops or reloads so I have to use one message for both.
     
  28. Offline

    emoknight

    any way u can fix the message when i reload the server. it the shows the message of the stoping server message
     
  29. Offline

    Azhuryen

    Great! I'd pay something to see the face when someone's banned and see this haha ^^ Thanks
     
  30. Offline

    spunkiie

    REQ: Possibility to change server message:

    'A player with this name is already online.'
     
  31. Offline

    RTRD

    @FrozenBrain What about SERVER_RESTART? :)

    And when i restart/stop the server i get the KICK_KICK_REASON msg. Why?
     

Share This Page