[CHAT] mChat v1.8.7- Chat formatting plugin [1597]

Discussion in 'Inactive/Unsupported Plugins' started by MiracleM4n, Jun 24, 2011.

  1. Offline

    MiracleM4n

    [​IMG]
    mChat - Chat formatting plugin
    Version: v 1.8.7 - (Versioning = MC Version 1.8 Release 7) (Nov 10/11)

    If you like mChat please vote it up by clicking the image below finding MChat and Thumbing it up :D.
    [​IMG]


    I Has BETTER Jenkins: HERE

    Source Code

    Click Me ---> mChat BukkitDev Page!!!! <--- Click Me

    Plugins using API (open)

    To-Do: (open)

    • Get more API suggestions?

    Next Release Info (open)

    Suggestions?


    Other Stuff:
    [​IMG] Please donate to help support me :D

    mChannel Now has its own thread

    Changelog:
    Version 1.7.12 (Sept 14/11)
    • Updated a lot of things.
    • Fixed a lot of things.
    • Added Censor.
    • Added Call Home function. (Ask SwearWord)
    • Added PEX Support.
    • Added Jenkins (dev.d3gn.net:8080)
    • ....Ill update tomorrow...
    Changelogs: (open)

    Version 1.7.11.1 (Sept 02/11)
    • Added +reason, +r variable to the kick message. (Displays the reason for the kick).
    Version 1.7.11 (August 28/11)
    • PNode for colouring in chat (mchat.coloredchat <---made it color for all you damn lazy Americans (Canadian = colour).
    • Added "+Groupname,+Gname,+G", "+Worldname,+Wname,+W" for Group/World name aliases (Check info.yml)
    Version 1.7.10_5 (August 16/11)
    • Fixed Permissions loader Faulz.
    Version 1.7.10_4 (August 15/11)
    • THIS IS A NEEDED UPDATE FOR THE MOST RECENT BUILDS OF PLUGINS RELYING ON MCHAT.
    • Finnally filled in the API spoiler.
    • Minor API changes. (Deprecated some methods)
    • Minor Local changes.
    • Added 2 more Colour Code types.
    • Added Custom Variables.
    • More Misc updates thanks to @Nijikokun .
    • PM for more Info.
    Version 1.7.10_3 (August 12/11)
    • Minor API changes.
    • Minor Local changes.
    • Nothing much you dont really "Need" this update.
    Version 1.7.10_2 (August 11/11)
    • Fixed bPermissions causing errors. (Damn you codename_B)
    Version 1.7.10_1 (August 09/11)
    • Fixed NPE on startup.
    Version 1.7.10 (August 09/11)
    • Merged mInfo, mChat once again.
    • Added an API switch.
    • Changed reload command to inlude both config/info.
    Version 1.7.9_3 (August 05/11)
    • Added full support for all major Permissions plugins.....again.
    Version 1.7.9_2
    • Uhm...
    Version 1.7.9_1
    • Uhm...
    Version 1.7.9 (August 03/11)
    • Made separate mchat plugin.
    • Added +location,+loc to formatting.
    • Dropped Permissions 2.x/3.x support.
    • Code cleanup.
    • Updated to Spout....More features to come...
    Version 1.7.8 (July 29/11)
    • Removed PM features.
    • Fixed API (Tie to mChat.API.parseChat(player, msg) = message-format or mChat.API.parseChat(player) = name-format).
    • Added join message formatting.
    • Other code cleanups.
    • Added a sample plugin that ties into the API.
    • Fixed inheritance issues.
    Version 1.7.7_2 (July 27/11)
    • Added configurable *Typing* message
    • Made Achievement Window more redundant.
    Version 1.7.7_1 (July 27/11)
    • Added configurable PM to Achievement Window
    • More code cleanup.
    Version 1.7.7 (July 27/11)
    • Added (/mchat pm {playername} message = mchat.pm)
    • Changed they way Health notifications work.
    • Made things easier for future dev work.
    Version 1.7.6_3 (July 27/11)
    • Very finite changes. (Code cleaning)
    Version 1.7.6_2 (July 27/11)
    • Why because I felt like it!
    Version 1.7.6_1 (July 27/11)

    • Fixed (/mchatme, /me) permissions.
    Version 1.7.6 (July 27/11)
    • Added (/mchatme, /me)
    • Added Health notification messages
    • Made Bukkit contrib features optional.
    • Not sure what else........
    Version 1.7.5 (July 26/11)
    • Removed /mchannel for use in another plugin.
    • Added an API like that of iChat.
    • Made source....DONT LAUGH AT ME..available.
    • Added custom join/leave/kick messages.
    Version 1.7.4_7 (July 24/11)
    • More NPE fixes.....Itll never end.
    Version 1.7.4_6 (July 23/11)
    • More NPE fixes.
    Version 1.7.4_5 (July 23/11)
    • Hopeful NPE fixes.
    Version 1.7.4_4 (July 21/11
    • PLAYER_CHAT error fixes.
    Version 1.7.4_3 (July 20/11)
    • Players who aren't in the public channel aren't outputted to other plugins.
    • When a player talks while not in the public channel their name is prefixed with their channel.
    • More BukkitContrib Fixes.
    Version 1.7.4_2 (July 20/11)
    • Hopeful DynMap fix.
    Version 1.7.4_1 (July 19/11)
    • Bumped versioning in case people dont look.
    • Lots of bug fixes but no new features.
    • Fixed Console not getting messages.
    • Fixed null message.
    • Fixed....Dont remember...It was late.
    Version 1.7.4 (July 19/11)
    • NPE fixes.
    • Commands being used by console fixes.
    • Config format changes.
    • BukkitContrib feature fixes.
    Version 1.7.3 (July 18/11)
    • Added reload config command.
    • Added channels.
    Version 1.7.2 (July 14/11)
    • Added Last message sent name thingy.
    Version 1.7.1 (July 14/11)
    • Officially Changed to mChat.
    Version 1.6.1
    • Initial Release.
     
  2. Offline

    Wellin


    It says here (like me) that 18:57:19 [SEVERE] Error occurred while enabling mChat v1.7.4_5 (Is it up to date
    ?): null. Apparently it isn't up to date? Also there's, an NPE... Try using the newer version that he put up.
     
  3. Offline

    MiracleM4n

    marvinbek: You dont have the group: node under mChat and it is trying to load this. (I will put a try/catch in)

    *Silent Update* (Fixed NPE for if your config is a bit off).

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

    knitemare

    I keep getting this error:

    Code:
    13:42:54 [SEVERE] Could not pass event PLAYER_CHAT to mChat
    java.lang.NullPointerException
            at net.D3GN.MiracleM4n.mChat.playerListener.onPlayerChat(playerListener.
    java:26)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:279)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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)
    When I reload the server its fine for a few minutes and then i get the same error again. This error make mChat not work. Please help me
     
  5. Offline

    MiracleM4n

    *Silent Update* (Fixed another NPE)
     
  6. Offline

    uncovery

    Nice plugin, good to have something that works with 1000. I got this working fine. Now my questions:

    I have 2 groups, and a user can belong to both of them, for example "user" and "donator". These two groups do not inherit from each other. Is it possible to add an additional suffix to the users who are also donators?

    Also: what is the "group:" setting in the config.yml for?

    thanks!
     
  7. Offline

    bocaj812

    Can you make the superperm permission nodes compatible with the yetis permissions 3.x? IT's a lot cleaner than the info: prefix suffix junk. Would be greatly apprecieated
     
  8. Offline

    MiracleM4n

    The plugin defaults to Perm3/2 if PermissionsBukkit is not enabled.
     
  9. Would it be possible to get another format option with timestamps?
     
  10. Offline

    bocaj812

    I use permissions 3.1.6, but I use bukkits Permission.yml, I don't use the info: in permissions, I have the prefix nodes set in the permissions.yml, but It does not seem to work, I would much rather use the permission node then making my code untidy.
     
  11. Offline

    MiracleM4n

    @bocaj812: Could you throw up your mChat config.yml I can help you with what to add to permission.yml.
    @uncovery: Not exactly sure what you are asking. If a player is in more than one group and you want the player to show something from both, You can set the group: variable and give the player mchat.group.ETC that matches to the Donator rank (+group, +g) and add a suffix, prefix for the other group (+s, +suffix/+p, +prefix).
     
  12. Offline

    bocaj812

    Mchat
    Code:
    # mChat configuration file
    #
    #           **IMPORTANT**
    #   usage of mchat-message-format is restricted to:
    #       +suffix,+s, +prefix,+p, +group,+g, +world,+w, +time,+t, +name,+n, +dname,+dn, +message,+m
    #           **************
    #
    # Use of mchat: is only if your using PermissionsBukkit (superperms)
    # ignore it if you don't know what that is.
    
    mchat-date-format: HH:mm:ss
    mchat-name-format: +p+dn
    mchat-message-format: '+p+dn: +message'
    mchat:
        prefix:
            registered: '&c[Registered]&7'
            local: '&9[Local]&7'
            vip: '&a[VIP]&7'
            moderator: '&7[Moderator]&7'
            admin: '&4[Admin]&7'
        group:
            registered: ''
            local: ''
            vip: ''
            moderator: ''
            admin: ''
        suffix:
            registered: ''
            local: ''
            vip: ''
            moderator: ''
            admin: ''
    permissions.yml
    Code:
    server.registered:
        children:
            commandbook.clear: true
            commandbook.intro: true
            commandbook.motd: true
            commandbook.who: true
            commandbook.rules: true
            commandbook.time.check: true
            mchat.prefix.registered: true
    
    server.local:
        children:
            mchat.prefix.registered: false
            mchat.prefix.local: true
            commandbook.msg: true
            commandbook.spawn: true
            commandbook.return: true
            commandbook.teleport: true
            commandbook.warp.teleport: true
            commandbook.whereami: true
            commandbook.whereami.compass: true
    
    server.vip:
        children:
            commandbook.call: true
            commandbook.give: true
            commandbook.midi: true
            mchat.prefix.local: false
            mchat.prefix.vip: true
    
    server.moderator:
        children:
            bbb.promote: true
            bbb.promote.2: true
            bbb.promote.3: true
            bbb.demote: true
            bbb.demote.1: true
            bbb.demote.2: true
            commandbook.barrage: true
            commandbook.broadcast: true
            commandbook.debug.info: true
            commandbook.debug.clock: true
            commandbook.give.infinite: true
            commandbook.give.stacks: true
            commandbook.give.stacks.unlimited : true
            commandbook.kick: true
            commandbook.kit.list: true
            commandbook.more: true
            commandbook.more.infinite: true
            commandbook.mute: true
            commandbook.rocket: true
            commandbook.shock: true
            commandbook.slap: true
            commandbook.teleport.other: true
            commandbook.time: true
            commandbook.warp.set: true
            commandbook.warp.teleport.other: true
            commandbook.weather: true
            commandbook.weather.thunder: true
            commandbook.whois: true
            commandbook.whois.other: true
            dynmap.hide.self: true
            dynmap.show.self: true
            mchat.prefix.vip: false
            mchat.prefix.moderator: true
            OpenInv.openinv: true
            OpenInv.search: true
    
    server.admin:
        children:
            bbb.promote.4: true
            bbb.demote.3: true
            commandbook.barrage.other: true
            commandbook.clear.other: true
            commandbook.say: true
            commandbook.say.me: true
            commandbook.give.other: true
            commandbook.reload: true
            commandbook.rocket.other: true
            commandbook.shock.other: true
            commandbook.slap.other: true
            commandbook.spawnmob: true
            commandbook.spawnmob.many: true
            commandbook.thor: true
            commandbook.time.lock: true
            dynmap.fullrender: true
            dynmap.hide.others: true
            dynmap.reload: true
            dynmap.render: true
            dynmap.resetstats: true
            dynmap.show.others: true
            dynmap.stats: true
            mchat.prefix.moderator: false
            mchat.prefix.admin: true
            OpenInv.crossworld: true
            OpenInv.exempt: true
    server.founder:
        children:
            bbb.promote.5: true
            bbb.promote.6: true
            bbb.demote.4: true
            bbb.demote.5: true
            commandbook.setspawn: true
            commandbook.thor.other: true
            OpenInv.override: true
    globalgroups.yml
    Code:
    groups:
          registered:
              permissions:
                  -'server.registered'
          local:
              inherit:
                  - registered
              permissions:
                  -'server.local'
          vip:
              inherit:
                  - local
              permissions:
                  -'server.vip'
          moderator:
              inherit:
                  - vip
              permissions:
                  -'server.moderator'
          admin:
              inherit:
                  - moderator
              permissions:
                  -'server.admin'
          founder:
              inherit:
                  - admin
              permissions:
                  -'server.founder'
          
    perworld group.yml
    Code:
    groups:
        registered:
            default: false
        local:
            default: false
        vip:
            default: false
        moderator:
            default: false
        admin:
            default: false
        founder:
            default: false
    Every other permission works, so I'm pretty confident in the setup. but Mchat isnt matching my permission nodes with my prefixes

    EDIT: WEll upon further testing, I discovered that I forgot to deop myself, and upon doing so, and demoting myself, I have discovered that my permissions set up does not work ...
     
  13. Offline

    MiracleM4n

    @bocaj812: Take a look at PermissionsBukkit. It is the official permissions plugin and the one that I officially support. (It can be used with Permissions 3).
     
  14. Offline

    bocaj812

    I tried to set it up, but I could not get it to work well with the forum bridge plugin 'Bulletin Board Bridge'
     
  15. Offline

    kTal54

    How do i install this?! haha i have it downloaded but dont no what to do wit the folders. shouldnt it come wit a jar file?
     
  16. Offline

    Sir_Speshkitty

    Having annoying issues getting this to work...
    If the user is in the default group or the Moderator group, it gives the user the Admin prefix. The group and suffix work fine, and the Member and Admin groups both work as expected.
    Permissions config.yml (open)

    Code:
    users:
        Sir_Speshkitty:
            groups:
            - Admin
    groups:
        default:
            permissions:
                mchat.group.guest: true
                mchat.prefix.guest: true
                mchat.suffix.guest: true
                permissions.build: false
                permissions.dump: true
                permissions.group.help: true
                permissions.group.list: true
                permissions.group.players: true
                permissions.help: true
                permissions.player.groups: true
                permissions.player.help: true
                permissions.player.list: true
        Member:
            permissions:
                mchat.group.guest: false
                mchat.prefix.guest: false
                mchat.suffix.guest: false
                mchat.group.member: true
                mchat.prefix.member: true
                mchat.suffix.member: true
                permissions.build: true
                permissions.reload: true
                permissions.info: true
                permissions.check: true
            inheritance:
            - default
        Moderator:
            permissions:
                mchat.group.member: false
                mchat.prefix.member: false
                mchat.suffix.member: false
                mchat.group.mod: true
                mchat.prefix.mod: true
                mchat.suffix.mod: true
            inheritance:
            - Member
        Admin:
            permissions:
                mchat.group.admin: true
                mchat.prefix.admin: true
                mchat.suffix.admin: true
                mchat.group.mod: false
                mchat.prefix.mod: false
                mchat.suffix.mod: false
                permissions.player.addgroup: true
                permissions.player.removegroup: true
                permissions.player.setperm: true
                permissions.player.unsetperm: true
            inheritance:
            - Moderator
    messages:
        build: '&cYou do not have permission to build here.'

    mChat config.yml (open)

    Code:
    # mChat configuration file
    #
    #           **IMPORTANT**
    #   usage of mchat-message-format is restricted to:
    #       +suffix,+s, +prefix,+p, +group,+g, +world,+w, +time,+t, +name,+n, +dname,+dn, +message,+m
    #           **************
    #
    # Use of mchat: is only if your using PermissionsBukkit (superperms)
    # ignore it if you don't know what that is.
    
    mchat-date-format: HH:mm:ss
    mchat-name-format: +p+name+s&e
    mchat-message-format: '[+prefix+group+suffix] +dname&f: +message'
    mchat:
        prefix:
            guest: 'PREFIX1'
            member: 'PREFIX2'
            mod: 'PREFIX3'
            admin: 'PREFIX4'
        group:
            guest: 'GROUP1'
            member: 'GROUP2'
            mod: 'GROUP3'
            admin: 'GROUP4'
        suffix:
            guest: 'SUFFIX1'
            member: 'SUFFIX2'
            mod: 'SUFFIX3'
            admin: 'SUFFIX4'


    It's probably something stupid I missed, but I can't see it :/
    Thanks for any help :)

    Edit: Never mind, restarting the server seems to have fixed it.
     
  17. Offline

    MiracleM4n

    Looking for input on a few things. I am currently cleaning up all the coding of this plugin to make it work nicer and not throw so many NPE's all the time. Would everyone like me to remove the /mchannel feature and make a plugin dedicated to this only in the near future? Would you also like me to make an API for this plugin so that other plugins can tie into it? What extra (chat related) features would you like included in this plugin (BukkitContrib feature requests are always welcome)? Please respond on here, on #bukkit on IRC, PM me here, or email me @ [email protected]. I want this plugin to be as useful as possible and also be as easy to understand. I would also like to know if everyone wants me to remove P2/3 support as it is no longer supported by Bukkit and/or the Permissions 3/2 Dev's.
     
  18. Offline

    jeffreylec

    I could take or leave the channels.
    I would like to see the "text above head whilst typing" color be changable
    Keep permissions 3/2
    I think it would be cool to have like a spam block - because most chat plugins seem to be glitchy with spam blockers, but if it's tide into it, that would be cool. (toggle true/false)
    custom join/leave messages?
    &colors in text. ex: hey - it's quite the &9blue&f day today.
    seperate log for chat? maybe log commands too with a seperate log? that would be bad ass
    have it log for how every long you want it to - basically have your server.log - then in /plugins/mChat/logs/chat.log|commands.log it would show up to how ever many days and/or size of file (which ever is easiest (or don't have a delete date(inception :)3)))))

    i'll let you know if i come up with more. I understand you want to keep it minimal, but i gave you my 2 cents :)
     
  19. Offline

    IncendiaDrakon

    How do we go about configuring display names?
     
  20. Offline

    MiracleM4n

    What do you mean by display names? This does not change your actual display name it just formats what you type in chat & join/leave messages.
     
  21. Offline

    dark_hunter

    Hey @MiracleM4n I love our plugin compared to iChat, the only thing I regret is the heath bar that was in iChat, anyway for you to add it to the chatbar and even possible to the display above the user?
     
  22. Offline

    40540057

    possible to remove/opt out of most features and just use the contrib stuff? also, anyway the name=title could be optional? we have ranks in our titles so it would be redundant and probably quite ugly
     
  23. Offline

    IncendiaDrakon

    Either I misunderstood, or it's redundant...

    Are +name and +dname both the same thing?
     
  24. Offline

    MiracleM4n

    +name is the name you logged in with +dname is the name that other plugins use/modify.
    @dark_hunter: I will try to implement this.
    @40540057: I can make contrib features optional if you want me to.
     
  25. Offline

    dark_hunter

    Cheers, I look forward to it.
     
  26. This:
    So the chat Looks like: [20:13] [Admin]Lathanael: hi
     
  27. Offline

    MiracleM4n

    @Lethanael: in the config try this mchat-date-format: 'HH:mm' and for example do mchat-message-format: '[+time][+group]+name: +msg'

    Ok would anyone like a slightly different healthbar or would you like the exact one that iChat uses?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  28. OOPS sorry did not notice that it was already there, thx :)
     
  29. Offline

    dark_hunter

    Maybe a little diffident. Is it possible to use the notification to say when xxx is low on heath? I have some many idea you could try.
     
  30. Offline

    MiracleM4n

    Ok healthbar is almost done. I just gave a link to dark_hunter for testing.
     
    dark_hunter likes this.
  31. Offline

    dark_hunter

    Been testing, so far so good.
     

Share This Page