[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

    davvem

    :'(:'(:'(:'(:'(:'(
     
  3. Offline

    Tofu FUNgus

    I love your plugin really much, but this:
    Code:
    18:41:21 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
            at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:238)
            at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:
    40)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:295)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:727)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            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:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Anyways.. Can you make my config so that the rank "Operator" would have the title "Staff" ?
    I made mines like this and didnt work:
    Code:
        Operator:
            weight: '0'
            format: '&7 [&bStaff&7] &c%name%&7: &f%message%'
    It also reset my config after that error.
    I am using PEX with the craft bukkit of [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    Thanks and please help! I really need this awesome plugin!
    -g86b7fa8-b1337jnks (MC: 1.8.1)
     
  4. Offline

    Kalman Olah

    Post your full config. Remember: you NEED the "default" format to be there.
     
  5. Offline

    Tofu FUNgus

    Ok here is my config:
    Code:
    time-format: HH:mm:ss
    messages:
      join-message: '&f%prefix%&6%displayname%&f has entered &c%world%&f!'
      quit-message: '&f%prefix%&6%displayname%&f mysteriously vanishes...'
      kick-message: Odin is not pleased with &f%prefix%&6%displayname%&f!
      message-of-the-day: '&cGreetings &f%displayname%&c, and welcome to &f%world%&c.|
    
    %wholist%'
    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: '&7 * &f%displayname%&7 %message% *'
      dnd-format: '&7* &e%displayname%&7 is not accepting messages at this time. *'
      dnd-custom-format: '&7* &e%displayname%&7: &f%dndmsg%&7 *'
      ignore-format: '&7* &e%displayname%&7 is ignoring you. *'
    misc-formats:
      tab-list-format: '&c%prefix%%displayname%%suffix%'
      who-message-format: '&cThere are currently &f%currentplrs%&c out of &f%maxplrs%&c
        players online.'
      who-world-message-format: '&cPlayer count for world &f%worldname%&c: &f%worldplrs%&c.'
      who-player-list-format: '&b%prefix%%displayname%%suffix%'
    chat-format:
      test1:
        weight: '0'
        format: '&7[&e%world%&7][&b%time%&7] &c%name%&7: &f%message%'
      test2:
        weight: '50'
        format: '&7[&e%world%&7][&b%time%&7][&2MEMBER&7] %status%&c%name%&7: &f
    
    %message%'
      test3:
        weight: '100'
        format: '&7[&e%world%&7][&b%time%&7][&3%prefix%%suffix%&7] %status%&c
    
    %displayname%&7:
          &f%message%'
      Adventurer:
        weight: '0'
        format: '&7[&eAdventurer&7] &c%name%&7: &f%message%'
      Operator:
        weight: '0'
        format: '&7[&4Staff&7] &c%name%&7: &f%message%'
    extras:
      enable-anonymous-stat-tracking: 'true'
    
    And using that made me get these two errors:
    http://pastebin.com/Kk8tMkNd
     
  6. Offline

    Kalman Olah

    Delete your config and let OKChat remake it. This time, don't delete the "default" format. Make sure you don't REMOVE anything, and make sure to use spaces, not tabs.
     
  7. Offline

    zecheesy

    Ok. How do you make rank-based or user-based titles?
    And how do I switch from defualt to member format?
     
  8. Offline

    Kalman Olah

    You can set prefixes in PEX, or you can use multiple chat formats. Just read the original post, it explains everything.
     
  9. Offline

    Darq

    About this, it does work great for logging commands, however with your /r command, it's still impossible to know who they're talking to, unless you go back to the first time they did "/m <name>", even still if it was someone else that started the conversation, and you've got a lot of people on, it'd be a damn nightmare to figure out who's saying what to who.
     
  10. Offline

    Kalman Olah

    I'll add the option for you :). I'm in a good mood.

    Version 2.2.0
    • Added an option to log private messages/replies in the console. You'll need to add a key to your config, or let OKChat remake it, or OKChat WILL NOT WORK.
    @Darq : Added your suggestion. I don't like it, but it seems weird that chat is logged, but PMs aren't.

    For the logging (or OKChat v2.2.0) to work AT ALL, you need to add this to your existing config:
    Code:
    extras:
      enable-anonymous-stat-tracking: 'true'
      enable-console-logging-of-private-messages: 'false'
    As you can see, it goes into the "extras" block.

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

    Darq

    @Kalman Olah Thank you~

    I actually have one more feature suggestion. I don't think you won't like it :p
    Ability to have a different chat format per world, could just define under chat-format worlds, and have the formats for each group under those.
    I'd like to have some way to tag their name according to what world they're in, and I know the %world% feature exists, however I don't want the whole world name listed.
    Another thing to think about if you're still in a good mood :3
     
  12. Offline

    Kalman Olah

    I'm not in THAT of a good mood ;).
    There's a fine line between a sweet feature and a useless gimmick.
     
  13. Offline

    Darq

    Apparently. :O
     
  14. Offline

    minechomp

    Suddenly this plugin breaks with spout essentials. It gives me this on startup.
    Code:
    2011-10-29 21:39:03 [INFO] While loading OKChat (plugins\spoutEssentials.jar) found old-data folder: plugins\spoutEssentials next to the new one: plugins\OKChat
    Then it gives me this.

    Code:
    2011-10-29 21:40:15 [SEVERE] Error occurred while enabling OKChat v2.2.0 (Is it up to date?): logging
    java.lang.NoSuchFieldError: logging
        at me.kalmanolah.oc.OKConfig.loadkeys(OKConfig.java:167)
        at me.kalmanolah.oc.OKConfig.configCheck(OKConfig.java:35)
        at me.kalmanolah.oc.OKmain.onEnable(OKmain.java:131)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    When I remove Spout Essentials its all fine. Any ideas whats causing it?
     
  15. Offline

    Kalman Olah

    If you're updating I suggest you read http://forums.bukkit.org/threads/ch...chat-formatting-1337.28173/page-9#post-776496
     
  16. Offline

    minechomp

    Hmmm. I had an OKchat in my plugins folder and one in the update folder. Replacing the one in the plugins folder with the one in the update folder fixed it. Maybe it was loading 2 at once.

    Ok new problem. How do you stop it from auto updating. The one in the update folder loads on startup. No matter what you do. It still says
    Code:
    2011-10-29 21:39:03 [INFO] While loading OKChat (plugins\spoutEssentials.jar) found old-data folder: plugins\spoutEssentials next to the new one: plugins\OKChat
    When I try to load it with spout essentials. It also stops spout essentials from loading.

    EDIT: OK somehow an OKchat.jar turned into spoutessentials.jar (O_O?) I re downloaded spout essentials and everything was fixed

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

    cocoson

    are you going to be adding PermissionsBukkit to this
     
  18. Offline

    Kalman Olah

    When superperms gets support for prefixes/suffixes, sure.
     
  19. Offline

    cocoson

    this is from there page
    http://dev.bukkit.org/server-mods/permbukkit/pages/faq/
    its at the bottom of the page
     
  20. Offline

    OllieGlover

    So far so good with this, but I get this error ever time a non-ranked player talks: [Severe] Unable to pass PLAYER_EVENT to OKChat. Any help at all? In my config file I have deleted the Default part as I don't need colour act on theres. I don't get this error though for a rank and all their colours ect work.
     
  21. Offline

    Kalman Olah

    You NEED the default part, it's the chat format that is used when a player doesn't have permission for any other format. Why would you even try to use OKChat, if not for the chat formatting?
     
  22. Offline

    jespertheend

    It says I don't have permissions installed, but I have bukkitperms and superpermbridge

    Do I need to install another permissions plugin? Because I do not really want to.
     
  23. Offline

    Kalman Olah

    Permissions, PermissionsEX, GroupManager and bPermissions are supported.
     
  24. Offline

    jespertheend

    bPermissions that's like Permissions Bukkit right?
     
  25. Offline

    Kalman Olah

    It's a permissions bridge for bukkit's permissions API, yeah.
     
  26. Offline

    Deleted user

    Help..
    on my server the Tab-List format is not chaning the display of the names.. no preffix support or anything.

    tab-list-format: '%prefix%%displayname%'

    please help :)
     
  27. Offline

    Kalman Olah

    People need to have the permission "okchat.tabformat" :)
     
  28. Offline

    thernztrom

  29. Offline

    Deleted user

    Yep i know but in the TAB sometimes it shows the color and sometimes not?
     
  30. Offline

    Kalman Olah

    The colours are based off of permissions prefixes. Tablist names are set 5 seconds after login :).
     
  31. Offline

    Darq

    Me again.

    I'm not able to get the chat formatting to work with bPermissions. I've tried making all the group names lower case, putting players in any one of 4 groups, etc etc. Ran out of things to try, so I've come seeking guidance.
    bPermissions 1.8.2.
     
Thread Status:
Not open for further replies.

Share This Page