Inactive [CHAT] nChat 0.8 - Barebones chat [1.2.4-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by niccholaspage, Feb 25, 2011.

  1. Offline

    niccholaspage

    nChat - Barebones chat
    Version: v0.8
    Tested on CB 1.1-R6, CB 1.1-R7, CB 1.2.3-R0.1

    MOVED TO BUKKITDEV.

    Outdated Information:

    This is a plugin I made just because iChat would not run on my server. It is only barebones right now, if you request features I will add them in.

    Features:
    • Group prefixes, suffixes, and names
    • Color support :D (Including in messages) To use for messages, use your color character (see below) then the number for the color after. List of colors: minepedia.net/colorguide.php
    • Join and leave messages
    • Requires Permissions 2+/3+
    • /nchat command
    Todo:

    • Nothing right now :)
    Config:

    Default config:
    Code:
    nChat:
        messageformat: '[+prefix+group+suffix&f] +name: +message'
        colorcharacter: '~'
        timestampformat: hh:mm:ss
        joinmessage: ''
        leavemessage: ''
    To adjust the message format, run the plugin once then modify nChat/config.yml in your plugins folder. Change the message format to your liking. The available variables are:

    +prefix - The player's group prefix
    +suffix - The player's group suffix
    +group - The player's group
    +name - The player's display name
    +rname - The player's actual username
    +world - The world the player is in
    +message - The message the player sent
    +timestamp - A timestamp. You can customize its format in the config.

    To change the color character, modify the colorcharacter option in the config. If the joinmessage and leavemessage are left blank, the messages will be normal. If you want green leave and join messages:
    Code:
        joinmessage: '&a+rname has joined the game.'
        leavemessage: '&a+rname has left the game.'
    Permissions:
    For groups:
    Code:
      Default:
        default: true
        permissions:
        inheritance:
        info:
            prefix: '&6'
            suffix: '&6'
    
    For individual users:
    Code:
    niccholaspage:
        group: Admins
        info:
            prefix: '&6'
            suffix: '&6'
    To allow a group/user to use colors in their messages, give it the node nChat.colors or nChat.colours.
    To allow access to the version, give the group/user the node nChat.version. To allow permission to reload the configuration, give the group/user the node nChat.reload.

    Download nChat

    Source Code

    Changelog:

    Version 0.7+
    Version 0.6
    • Every option in the chat message format can now be used for every other message
    • nChat command for version & reloading
    • Join and leave messages now default to the actual default messages
    Version 0.5
    • Custom join and leave messages
    • Permissions 3.0 support
    • +rname
    Full Changelog (open)
    Version 0.4
    • Fixed the percent symbol
    • Added timestamp support
    Version 0.3
    • You can now show the world in chat (use +world)
    • Uses event.setFormat instead of canceling the message
    Version 0.2.1

    • Fixed backslashes and dollar signs (\ and $)
    Version 0.2

    • Color support for messages :)
    Version 0.1.1

    • Fixed bug where users could use the & sign in their messages to get color. (Seems more like a feature, anyone want it?)
    Version 0.1

    • First release.
     
  2. Offline

    DoomBunnyPwn

    Does this use the permissions prefix and suffix nodes?
     
  3. Offline

    niccholaspage


    Yes! Just updated the post for it :)
     
  4. Offline

    DoomBunnyPwn

    Nice job man. Ichat wouldnt work for me either
     
  5. Offline

    niccholaspage

    Yeah. I just released 0.1.1 which fixes the bug that allowed people to use color in messages. (Again, could probably be a feature)
     
  6. Offline

    DoomBunnyPwn

    Yes, i would like to see that as a feature actually.
     
  7. Offline

    Kene

    Prefix Colors?
     
  8. Offline

    tension69

    I'd prefer the colour codes to be permission controlled, ie visitors, default groups not having it. Loyal players then get the option of using it when promoted. What do you think niccholaspage?

    'coloured.messages.admin'

    sort of thing;)

    Implement this and I'm going to try it...
     
  9. Offline

    neonx

    I was soo excited that finally a simple prefix plugin (the other Prefixer plugin doesnt work for me), but.....
    i got this message when i type something:

    2011-02-26 10:03:44 [SEVERE] Could not pass event PLAYER_CHAT to nChat
    java.lang.NullPointerException
    at com.niccholaspage.nChat.nChatPlayerListener.onPlayerChat(nChatPlayerListener.java:28)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:155)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:618)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:606)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Same error on craftbukkit 440 and 450
     
  10. Offline

    niccholaspage

    That should be working. Works on my server.
    Did you just read my mind or something? Color support will be like that except it will be for each individual color:
    nChat.colors.red
    nChat.colors.green
    nChat.colors.* for all of them :)
    And I'll allow colour to work too:D. I'm also going to have an option in the config for which symbol will be used for the colors.

    @neonx Are you sure you have Permissions installed? If so, what version and if you have GroupManager, tell me what version of that
     
  11. Offline

    Juze

    Ever had an idea to try HeroChat?
     
  12. Offline

    niccholaspage

    I didn't need any of the channel features and was fine with iChat until it stopped working, so I just made my own chat plugin. I wouldn't of made this if I realized someone submitted a new version of iChat :p
     
  13. Offline

    NachoDuck

    Awesome, thanks!
     
  14. Offline

    niccholaspage

    Your welcome :)
     
  15. Offline

    Springrolls

    I am getting this error:


    2011-02-26 09:15:37 [SEVERE] Could not pass event PLAYER_CHAT to nChat
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroupPrefix(Control.java:554)
    at com.nijiko.permissions.Control.getGroupPrefix(Control.java:1078)
    at com.niccholaspage.nChat.nChatPlayerListener.onPlayerChat(nChatPlayerListener.java:29)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:155)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:618)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:606)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  16. Offline

    niccholaspage

    What version of Permissions/Groupmanager are you using?
     
  17. Offline

    Springrolls

    Permissions 2.4 and... i dont have groupmanager.. do i need that?
     
  18. Offline

    niccholaspage

    You do not need Groupmanager. I will checkup on permissions for you!

    Turns out I need to update this for Permissions 2.1+ support! Lets see how hard/easy this will be.

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

    Springrolls

  20. Offline

    niccholaspage

    Yes, which is why I said Permissions 2.1+ :)
     
  21. Offline

    Springrolls

    Ah thought you said 2.1. :p
     
  22. Offline

    niccholaspage

    Close to a release to fix Permissions 2.1+ :D
    Edit: Well, Permissions 2.1 works fine. What doesn't is 2.4 so I'm fixing this right now.
     
  23. Offline

    Springrolls

    Hows it coming?
     
  24. Offline

    niccholaspage

    Not so good. Permissions 2.4 is not playing well on my test server.
     
  25. Offline

    Kene

    How do I change Prefix Color?... o.o
     
  26. Offline

    niccholaspage

    Using the and symbol and then a color after it in your Permissions/GroupManager config should work:
    Code:
    &6
    There. It should work for Permissions 2.4 :). If you get an error still, download Permissions again since the dev made a very important change to it.

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

    jamietech

    So nicholas, how do I install this? Your instructions are a bit confusing. Do I edit settings in Permissions (like I have already, without your plugin, and it doesn't work) or do I edit them in your settings file, or both? Seems great cause I really want colours :3
     
  28. Offline

    niccholaspage

    First, you edit the config.yml for nChat and setup your message format. Then you edit the prefixes & suffixes in the Permissions file. Since you already have them setup you don't have to modify your Permissions file :)
     
  29. Offline

    Puremin0rez

    Thank you very much for this plugin. Now I'm able to use a newer build!
     
  30. Offline

    niccholaspage

    Your welcome! I'm finishing up color support right now :)
    --- merged: Feb 26, 2011 10:50 PM ---
    nChat 0.2 released! Color support :)
     

Share This Page