[CHAT/ADMN] OKChat v3.0.7 - It only does everything chat-related! [1.0.0-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Jul 26, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Kalman Olah

    OC - OKChat
    by Kalman Olah​
    Latest version: 3.0.7 ( Download )​
    Would you like to buy me a drink? some useless stuff from Amazon? a car?​
    [​IMG]
    What is OKChat?
    OKChat is twenty plugins in one. If it's chat related, it can do it.

    OKChat supports Permissions, PermissionsEX, bPermissions and PermissionsBukkit.
    Where can I download OKChat?
    The latest version of OKChat can always be found here.
    Additionally, OKChat comes with an auto-updater which will download updates to the /plugins/OKChat/update/ folder.
    How do I set up OKChat?
    After you've extracted the .jar to your server's /plugins/ directory and have restarted your server OKChat will generate a config.yml file, which can be found in the /plugins/OKChat/ directory.
    This configuration file is fully commented and should be easy to understand for anyone.​
    How do I use OKChat?
    OKChat commands:​
    OKChat permissions:
    Misc:
    Check out OKChat on Github!

    Changelog:
    Version 3.0.7
    • Attempted fix for "StringOutOfBoundsException". This is a java bug. Screw you, replaceAll.
    Version 3.0.6​
    • Fixed player list formatting. Turns out I had disabled it. Why? No idea.
    Show Spoiler
    Show Spoiler

    Version 3.0.5​
    • Added the config boolean "general.strip-log-color" to strip all color from logged chat. This feature sure is extremely useful.
    Version 3.0.4​
    • Priority overhaul to fix compatability with other plugins such as xAuth, modifyworld, mcMMO, etc...
    Version 3.0.3​
    • Fixed not being able to whisper players with an underscore in their names. I forgot you could use underscores...
    Version 3.0.2​
    • Fixed local chat not showing up to the player chatting.
    • Added console logging of chat.
    Version 3.0.1​
    • Added %time% variable. You can configure the format in "general.time-format".
    • Added "okchat.chatcolor" node. Guess what it does? Won't work well with word wrapping, due to the way it splits long chat messages into multiple messages.
    Version 3.0.0​
    • Complete recode. Added a lot of features. Check the config and you'll understand.
    Version 2.2.1​
    • Made %currentplrs% and %maxplrs% usable in more messages.
    Version 2.2.0​
    • Added optional logging of PMs/replies. Check the example config to see what key you need to add, or OKChat will not work if you do not delete your configuration first.
    Version 2.1.3​
    • Setting join,quit,kick messages to "default" will cause them to remain unaltered. Setting them to empty values, or removing them from your config file will result in the message being removed completely.
    Version 2.1.2​
    • Important bugfix.
    Version 2.1.1​
    • Ignored deprecation warnings. Thanks bukkit!
    Version 2.1.0​
    • Added /who <world>. Lets you see players in <world>. Node: okchat.whoworld
    • Added /dnd <message>. It's like /dnd, but your custom message is also shown to the player whispering you.
    Version 2.0.2​
    • Tablist names are now set 5 seconds after login.
    Version 2.0.1​
    • Updated for 1240.
    Version 2.0.0​
    • Added /who command.
    • Added motd.
    • Added "TAB" player list formatting.
    • Added the ability to use color codes with signs.
    • Misc additions and rewrites.
    • Added compatability with GroupManager.
    • Added compatability with bPermissions.
    Version 1.5.0​
    • Compressed code.
    • Added hooks for future handlers for persistent pms.
    • Added anonymous stat sending option.
    Version 1.4.2​
    • Added /m to the incredibly large list of /w aliases.
    Version 1.4.1​
    • Added the /afk command. Node: okchat.afk.
    • Added the "%status%" formatting variable. If a user has DND turned on, it will be <DND>. If a user has AFK turned on, it will be <AFK>. DND takes priority over AFK. This can be coloured and used in all chat formats, including DND, ignore, regular chat, whispers and the like.
    Version 1.4.0​
    • Added Persistent messaging along with the /pm command. /pm <target> <message> will send someone a message, and any further regular chat will be sent to this player, as a message. /pm clears this status.
    Version 1.3.3​
    • Fixed a bug where the DND status wouldn't work if you were ignoring someone.
    Version 1.3.2​
    • Added the weight value for chat formats. If a player has 2 format permissions nodes, the format with the highest config.yml weight value will be used.
    Version 1.3.1​
    • Fixed a bug with replies.
    Version 1.3.0​
    • Added an ignore system. This ignore list is reset when you log out or get kicked.
    • Added a DND system. This mode is reset when you log out or get kicked.
    • Made OKChat use commands /w,/whisper,/r,/re,/reply,/msg,/message,/tell,/respond...because I can.
    • Added customizable whisper, reply, ignore, emote, DND message formats in the config.yml.
    Version 1.2.2​
    • Changed /r to /re to avoid certain bugs.
    Version 1.2.1​
    • You can now disable custom join/kick/quit messages by simply removing the value from your config file.
    Version 1.2.0​
    • Added custom join, leave and kick messages. Thanks to @Asphodan for the suggestion.
    Version 1.1.8​
    • The displayname is now displayed when you use /me.
    Version 1.1.7​
    • Attempted message color bugfix.
    Version 1.1.6​
    • Fixed a bug that caused color codes in prefixes/suffix not to be parsed.
    Version 1.1.5​
    • Removed SuperPerms support again.
    Version 1.1.4​
    • Added SuperPerms support.
    • Added bInfo (prefixes/suffixes for superperms) support.
    • Added the %suffix% variable.
    Version 1.1.3​
    • Hotfix to fix an issue where the plugin crashed when the auto-update server was down.
    Version 1.1.2​
    • Fixed a bug that caused OKChat to throw errors when no prefix was set.
    Version 1.1.1​
    • Added the %prefix% format variable. This gets a player's permissions group/user prefix.
    Version 1.1.0​
    • Added the 'okchat.color' permission node. If you have this node, you can use the &1 - &9 and &a - &f color codes in chat.
    • Added the 'okchat.emote' permission node. If you have this node, you can use the /me <message> command to broadcast an action. I think it looks pretty neat too, to be honest.
    • Added the 'okchat.whisper' and 'okchat.reply' permission nodes. If you have these nodes, you can use the /w <target> <message> and /r <message> commands to send and reply to messages.
    Version 1.0.2​
    • Removed a debugging value I forgot to remove.
    • Changed the plugin so the actual chat message remains unaltered. This should make sure OKChat doesn't cause issues with stuff like Dynmap.
    Version 1.0.1​
    • Improvements.
    Version 1.0.0​
    • Initial release.
     
    minechomp, zecheesy and mruczek like this.
  2. Offline

    Kane

    Suggestions from my players if possible.

    1) Add an config to allow /r be the last whisper you sent rather then the last whisper received.
    2) this was a big one back in hmod persistencePM /m bob (enter) says lala with bob. Now every line you type goes right to bob till you /m (enter)
     
  3. Offline

    Sniper3

    Yes, PersistentPM was awesome in HMod. It allowed you to private chat without typing /r all the time. The way it worked was you typed /m [playername] [message] and then all you have to do is type regularly and it would alway PM that player until you typed /m in again, then it went back to global chat.

    One advantage of PersistentPM over /r is that you can't accidentally /r the wrong person.

    Say you /m bob
    -bob /m's back
    -you /r and are typing to bob
    -john /m's you without you seeing
    -you hit enter and what you wanted to go to bob now goes to john

    That sometimes doesn't go over too well. ;)
     
    ElectroBot4 likes this.
  4. Offline

    Philip Blair

    This. I completely agree.
     
  5. Offline

    ElectroBot4

    I third this.
     
  6. Offline

    Kalman Olah

    Version 1.4.0​
    • Added Persistent messaging along with the /pm command. /pm <target> <message> will send someone a message, and any further regular chat will be sent to this player, as a message. /pm clears this status.
    @ElectroBot4
    @Philip Blair
    @Sniper3
    @Kane
    I'd like to thank you guys for the suggestions and feedback. It always helps :).

    Note that Persistent PMs are currently limited to the /pm command. All other commands still work as before, with the original Permissions nodes. I'd like some feedback on what I should do next. Should I leave the other commands intact, or add this persistent pm function to them as well?
     
    Philip Blair and Kane like this.
  7. Offline

    Kane

    Thanks the only suggestion from here on that would be to let us do /pm Kan <enter> as sometimes you like to set it up between the 2 right away but might not say anything hehe.

    Thanks!



    PS: Ever considered adding /afk function? Just simple afk adds like [AFK] prefix :)
     
  8. Offline

    Sniper3

    Philip Blair likes this.
  9. Offline

    Kalman Olah

    Version 1.4.1​
    • Added the /afk command. Node: okchat.afk.
    • Added the "%status%" formatting variable. If a user has DND turned on, it will be <DND>. If a user has AFK turned on, it will be <AFK>. DND takes priority over AFK. This can be coloured and used in all chat formats, including DND, ignore, regular chat, whispers and the like.

    Sure.

    You're welcome :).
     
    Kane likes this.
  10. Offline

    Kane

    Wonderful works great. This pretty dam fine plugin. I know how to change messages for say /msg bob hey then their thing says afk and such. I don't know though how to force a prefix on a name though while their under the effect of dnd or afk. For example if they chat or /who it would show it on there.
     
  11. Offline

    Kalman Olah

    For normal chat, just add %status% to the format. My plugin doesn't alter /who though, sorry.
     
  12. Offline

    Kane

    The who plugin I have grabs prefixes :)
     
  13. Offline

    Kalman Olah

    The DND/AFK isn't a prefix though, it's a custom OKChat status. Sorry bro.
     
  14. Offline

    Kane

    ahhhh darn. Okay thanks for letting me know. I was wondering why I could not get it haha.

    Not sure if anyone has this:
    Code:
    18:09:15 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
            at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:240)
            at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:60)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            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:89)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  15. Offline

    Kalman Olah

    Can you paste your config.yml, please?
     
  16. Offline

    Kane

    I figured it out thanks. I had removed default chat hehe. I guess it's needed I sort of just ignored it and renamed it in the past :p
     
  17. Offline

    Kalman Olah

    Yeah, when there's no node available, OKChat defaults to the "default" format. This one's also stored in the config.yml, so you can customize the chat format even if you're not handing out permissions nodes :).

    Glad it's working for you.
     
  18. Offline

    Kane

    I tried doing alias for /msg since we used essentials and people got use to /m also.
    m:
    - msg

    Does not seam to do the trick just keeps coming up the usage of /msg. Wonder if you know a better method or maybe willing add /m for a alias to /msg inside the plugin.

    Thanks,
    Kane
     
  19. Offline

    Kalman Olah

    Version 1.4.2​
    • Added /m to the incredibly large list of /msg aliases.
     
    Kane likes this.
  20. Offline

    stertingen

    will you make the possibility to disable some aliases (e.g. /w) which would make conflicts with other plugins? (e.g. bookworm uses /w too)? and what about superperms (permissionsbukkit) support?
     
  21. Offline

    Kalman Olah

    If you want to disable some aliases simply remove the commands from the plugin.yml found in the OKChat.jar file.
    Superperms support will be added once there's a bridge that allows you to set prefixes without a third plugin.
     
  22. Offline

    stertingen

    ok, thanks. :)

    i think "#" in the front of the lines work too (i try it)
     
  23. hmm, for some reason the join, quit and kick messages wont display at all for me, this is my config:

    Code:
    time-format: HH:mm:ss
    messages:
        join-message: '&2%prefix%%displayname%&2 has entered &c%world%&2!'
        quit-message: '&4%prefix%%displayname%&4 mysteriously vanishes...'
        kick-message: 'God is not pleased with &f%prefix%%displayname%&f!'
    internal-formats:
        whisper-from-format: '&7* From %status%&e%displayname%&7:&f %message%'
        whisper-to-format: '&7* To %status%&e%displayname%&7:&f %message%'
        emote-format: '&f * %displayname% %message% *'
        dnd-format: '&7 * %prefix%%displayname%&7 is not accepting messages at this time. *'
        ignore-format: '&c * %prefix%%displayname%&c is ignoring you. *'
    chat-format:
        default:
            weight: '0'
            format: '&f%status%&f<%prefix%%displayname%&f> %message%'
        member:
            weight: '50'
            format: '&f%status%&f<%prefix%%displayname%&f> &f%message%'
        moderator:
            weight: '75'
            format: '&f%status%&f<%prefix%%displayname%&f> &f%message%'
        admin:
            weight: '100'
            format: '&f%status%&f<%prefix%%displayname%&f> &f%message%'
    
    It also seems that the chat in the server log does not follow the syntax, basically it doesn't display the players name, just the timestamp, which is already added by the server anyway...

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

    Kalman Olah

    Sounds like another plugin is interfering with OKChat. I just tested it, and it's all working fine for me.
     
  25. yeah, it seems the McMyAdmin parses the log incorrectly

    quick suggestion that might be fun for some servers. since you already have formatting based on groups, how about also making join and quit messages definable like that? and if not defined it just uses default? :)

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

    CoffeeOD

    Sneaky Kalman, I was coming to suggest option to mute players but cant, since its already added (at least that what I understood from /ignore command)! How dare you! Anyhow, very nice plugin, solved quite few problems with our server with simple and easy to configure plugin. Just loving it, keep up the good work!
     
  27. Offline

    Kalman Olah

    The /ignore function only mutes their PMs to you, not their regular chat. You can "mute" players with my other plugin, OKSpamSecurity :). Glad you like the plugin, anyway.
     
  28. Offline

    Archelaus

    Why have you got GEN in the title?
     
  29. Offline

    Kalman Olah

    I genuinely don't know.
     
  30. Offline

    Archelaus

    Mind taking it out? It messes with the categories ;P
     
  31. Offline

    Kalman Olah

    Done :).
     
Thread Status:
Not open for further replies.

Share This Page