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

    FrozenBrain

    Yep, you need Permissions 3.

    Not yet, but that's on my todo list.

    AFAIK there's no message that shows up when someone logs in for the first time. MessageChanger won't add any messages to the server, it just modifies the existing ones.
     
  3. Offline

    jor956

    I was confused with the Essentials one :p
     
  4. Offline

    wassilij

    Code:
    2011-07-12 10:33:46 [SEVERE] Could not pass event PLAYER_LOGIN to MessageChanger
    java.lang.NullPointerException
        at de.frozenbrain.MessageChanger.mcPlugin.getMessage(mcPlugin.java:96)
        at de.frozenbrain.MessageChanger.mcPlayerListener.onPlayerLogin(mcPlayerListener.java:22)
        at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:321)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:184)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Code:
    #2011-06-12 10:29:15
    
    #Server info:
    Server name - [GER] FreeMiner
    Server port - 25565
    Minecraft version - 1.7.2
    Bukkit build - 953
    Bukkit version - git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    
    #Plugins info:
    AfkKick - 1.4
    BananaChunk - 4.6
    CommandBook - 1.5.2
    CraftBukkitUpToDate - 2.5.6
    creaturebox - 0.7.4
    DropPlugin - 2.1
    FalseBookBlock - 0.86.2alpha
    FalseBookCart - 0.86.2alpha
    FalseBookCore - 0.86.2alpha
    FalseBookExtra - 0.86.2alpha
    FalseBookIC - 0.86.2alpha
    FirstJoin - 1.3
    Flup_p1 - 1.7.2
    GravelClay - 1.3
    HeroicDeath - 1.8.1.156
    HeroSpawn - 0.2
    HomeX - 0.6
    iChat - 2.3.1
    LogBlock - 1.21
    LogBlockQuestioner - 0.02
    LWC - 3.3
    mcMMO - 1.0.34
    MessageChanger - 1.0
    MinecraftViewer - 1.0c
    MyWarp - 2.0
    NaturalGiants - 1.3
    NoSuffixedKill - 1.01
    NoWeather - 1.5
    Permissions - 3.1.5
    Pigasus - 0.1
    PluginInfo - 0.1.3
    RandomPort - 1.0
    SimpleReserve - 0.2.6
    SimpleTips - 0.5
    SpongeRestore - 1.1
    StarterKit - 0.4a
    Tables - 0.4.1
    TimeAnnounce - 1.1
    TimeFold - 0.4.2
    TimeRank - 0.1.0b
    TKeepGrowing - 0.1.5
    Tombstone - 1.3.0
    TreeAssist - 1.1
    Vanilla - 0.1
    WorldEdit - 4.6
    WorldGuard - 5.2.2
     
  5. Offline

    FrozenBrain

    Nice catch, thanks :)

    Version 1.01 is up.
     
  6. Offline

    Call98

    Mine Don't works! :(
     
  7. Offline

    efstajas

    I can't get it to work. This is the group I want to change the messages for:
    Code:
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
                messageChanger:
                    KICK_KICK_REASON: '&4Mach keinen Scheiss.'
                    KICK_FULL: '&eDer Server ist voll, sorry!'
            inheritance:
            permissions:
                - 'foo.bar'
                - 'lockette.user.create.*'
                - 'falsebook.blocks.gate'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
                - '-homesweethome.home'
                - '-homesweethome.home.set'
                - 'warpz0r.*'
                - 'falsebook.blocks.lift'
                - 'SpawnX.spawn'
                - 'multiverse.tp'
    The plugin is enabled. I am using the Bukkit build Dinnerbone tweeted for 1.7.3 and there aren't any errors in the console.
     
  8. Offline

    wassilij

    Could you edit the Outdated Server message.?
     
  9. Offline

    FrozenBrain

    No, damnit!


    Are you kicking people with a plugin? Maybe it overwrites the custom kick message.. I might have to set the priority to highest :)
     
  10. Offline

    efstajas

    Umm yeah, I think so, I have ScrapBukkit installed. It would be nice if you could fix that. :)

    Here are all my plugins:
    CommandSigns, CommandHelper, ColoredSigns, AlwaysDay, LimitSpawns, ChairCraft, Tables, FalseBookChat, BlockCantKeepUpSpam, MineMail, ColorMe, FalseBookCore, AdvancedWarning, FakeMessage, FalseBookIC, Permissions, SpawnX, Citizens, SimpleGive, iChat, HeroicDeath, FalseBookBlock, MusicCraft, ScrapBukkit, BigBrother, ChatBukkit, FalseBookExtra, WorldGuard, Minequery, Warpz0r, iConomyChestShop, MoveCraft, Clear, MagicCarpet, MultiInv, HelpCommands, LoginMessage, WorldEdit, Lockette, EasyRules, MotherNature, TeleConfirmLite, iConomy, MultiVerse, MobArena, ThunderJoin, RemoteToolkitPlugin, CookieMonster, MessageChanger

    I know those are quite a lot, but I am pretty sure ScrapBukkit is the reason. I'll try disabling it tomorrow. :)
     
  11. Offline

    zenyl

    This plugin seems to turn off IChat, Permissions, and DefaultCommands, which are the backbone of my server :'(
    Please fix this, cuz i could REALLY use this plugin
    My plugins:
    AntiHack, BedrockControl, BigBrother, BoatMod, BookWorm,
    Chat, ClayGen, ColorMe, CraftBookCommon, CraftBookCircuits, CraftBookCommon,
    CraftBookMechanisms, CraftBookVehicles, CustomCrafting, DefaultCommands, EasyRules,
    EternalApple, FishPeople, FlatLands, FLTDetector, ForceChat, FoundDiamonds,
    HeroicDeath, HomeX, IBICF, iConomy, iConomyChestShop, IPGet, ItemDetector, Jail,
    Jobs, LastCommand, LockCraft, Lockette, MagicCarpet, MailBox, MineMail, MobDrops,
    MultiInv, MultiInv, MusicCraft, NoExplode, OpenInv, OpWizard, OreDetector, Par
    ties, Permissions, Persistence, PuddiChat, RealTeleporter, Regios, Runecraft,
    Runecraft, SimpleAdmin, SimpleNews, SimpleSign, Socials, Sortal, Spells, SQLite,
    TimeAnnounce, Wand, Warpz0r, WeatherGod, WelcomeMe, WordRank, WorldEdit, Citizens,
    DefaultPermissions, iChat, MobArena
     
  12. Offline

    kyle921

    I've never had a problem with this plugin and iChat or Permissions 3.1.6. And if you're going to say it "turns them off", please post a log so the dev can see what the problem might be.
     
  13. Offline

    ThePrall44

    I understand that my setup is probably not completely supported, but I figured I'd pass this on to you, Mr. Dev.

    Code:
    2011-07-22 21:17:52 [INFO] USER [/IP:pORT] logged in with entity id 103 at ([World1] -44.78125, 94.0, 89.28125)
    2011-07-22 21:17:57 [SEVERE] Could not pass event PLAYER_JOIN to MessageChanger
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    	at de.frozenbrain.MessageChanger.mcPlugin.getMessage(mcPlugin.java:93)
    	at de.frozenbrain.MessageChanger.mcPlayerListener.onPlayerJoin(mcPlayerListener.java:34)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    	at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-22 21:17:57 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-07-22 21:18:40 [INFO] Connection reset
    2011-07-22 21:18:40 [INFO] USER lost connection: disconnect.quitting
    2011-07-22 21:18:40 [SEVERE] Could not pass event PLAYER_QUIT to MessageChanger
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    	at de.frozenbrain.MessageChanger.mcPlugin.getMessage(mcPlugin.java:93)
    	at de.frozenbrain.MessageChanger.mcPlayerListener.onPlayerQuit(mcPlayerListener.java:58)
    	at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:608)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    This is with CB #1025, PermissionsEx 1.13, Essentials Full 2.5
    Config:
    Code:
                messageChanger:
                    KICK_KICK_REASON: '&4The Admin or a Moderator has kicked you. You may rejoin at any time.'
                    KICK_FULL: '&fThe server has reached its maximum capacity. Try again later.'
                    KICK_WHITELIST: '&4You do not have permission to join the server at this time.'
                    KICK_KICK_LEAVEMSG: '&eThere's the door, %pName. Get lost.'
                    KICK_BANNED: '&4The Admin has banned you from this server. Way to go...'
                    SERVER_STOP: 'Error: '%msg' Server stopping.'
    
     
  14. Offline

    FrozenBrain

    This plugin is currently only working with Permissions 3. I really need to make it more compatible in the near future, sorry for now.
     
  15. Offline

    Luigilord222

    Everything seems to require permissions... I have a hard time getting permissions to work :(
     
  16. Offline

    cartoongeorge95

    for some reason it wont create a folder in my plugins, i added the jar but still no :( Any ideas or documentation
     
  17. Offline

    Taranis01

    @FrozenBrain

    hey,
    i see u changed the way to configure MessageChanger. How to edit the default messages? Or do i have to add them for each group i have? :(
     
  18. Offline

    FrozenBrain

    You have to add them to your groups. However the way messages are defined will change soon (again) to make the plugin more compatible.
     
    Don Redhorse and Taranis01 like this.
  19. Offline

    cartoongeorge95

    @FrozenBrain When can you update the plugin to work with CraftBukkit 1000?

    I was really hoping to play with this brilliant plugin but ran into multiple troubles with no directory being created :(

    Thank You
     
  20. Offline

    FrozenBrain

    It's working fine with CB Build 1000. No file will be created, that's correct. Read the "Configuration" part in the first post.
     
  21. Offline

    cartoongeorge95

    @FrozenBrain The thing is im not using permissions, is there a way i could get this working with MCMYADMIN group manager?
     
  22. Offline

    FrozenBrain

    Nope, not yet.
     
  23. Offline

    justproud2b

    @FrozenBrain if its working with bukkit 1000 and is tested maybe you should update the information to reflect that? Just a suggestion as I haven't been using this due to assuming it was outdated.
     
  24. Offline

    an0x

    after installing no file is created :/
    i also restart the server
     
  25. Offline

    Don Redhorse

    @FrozenBrain any eta on a superperms version? I like the plugin and I'm looking forward to use it again.
     
  26. Offline

    Pythros

    @FrozenBrain

    Is this inactive? No post from you for little over a month and it's 2 RB's behind!
     
  27. Offline

    IronPixel

    Hi, could you make it possible to customize the "Outdated Server" message? :D
     
    Tallcraft and Nick22 like this.
  28. Offline

    Don Redhorse

  29. Offline

    Don Redhorse

    MY version still works on 1285
     
  30. Offline

    Don Redhorse

  31. Offline

    chocolatepeople

    When I start the plugin, it says that a permission system could not be found, disabling plugin.
    How do I solve this. When I installed the plugin, it also never created a config file, so I created one in a "MessageChanger" folder in plugins.
     

Share This Page