[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

    Bleaker

    Another thing I'm noticing is that the disallowing of nicknames is not working. I've disallowed numerous nicknames, but they are all able to be used via /nick by all players, even those with none but the most basic of permissions.
     
  3. Offline

    cyberjacob

    Hey Kalman,
    is it possible to have multiple groups in the chat layout?
    e.g. if a player is in group A and B they would get
    Code:
    [AB] Player: Hello!
    or
    Code:
    [A] [B] Player: Hello!
     
  4. Offline

    Bleaker

    This may have something to do with your nickname character limit? I'm not sure, just thought I'd throw an idea out there. It might assume that the color codes are characters before it converts them, severely limiting the length of your name. Might as well give it a try!
     
  5. Offline

    Euthyphro

    Another bug on the long list of bugs I stated above, local chat doesn't show up when you subscribe. For example, you type '/sub Local' then you are now in local chat, however, your messages don't show up to you. They show up to other ppl but not the person who typed the message.

    And what happened to okchat.emote?
     
  6. Offline

    Kalman Olah

    Thanks for the feedback guys. Will be uploading 3.0.2 in a few minutes.

    Fixed in 3.0.2.
    No.
    1 - Are you using Essentials? The nick coloring for OPs could be messing it up, since my plugin can't count those colors.
    2 - Uhh, no.
    3 - Color codes count towards the max character limit.
    4 - Added in 3.0.2.
    5&6 - Can't replicate these errors. Try updating to 3.0.2 and deleting your nicknames.yml, ignores.yml and config.yml. If the error still occurs, please post your full config.yml so I can try to replicate the error again :).
     
  7. Offline

    Euthyphro

    1) Not using essentials and haven't for a long time due to how badly it is programmed. This problem still seems to be occurring.
    5&6) Still occuring, config posted here: http://pastebin.com/BnCWZgQu

    2) Whisper works with most players, using @ seems to work great except for players with _ in their name. For example, typing @The_Hatman results in "Invalid player" however it works for players without special characters outside of numbers and letters. It works with players in the same usergroup, however, @The_Hatman is not working even after wiping configs and starting 100% fresh.


    Thanks for the update.
     
  8. Offline

    Jamie Tees

    +1 I'm getting this too.
     
  9. Offline

    cyberjacob

    any chance of adding this feature?
     
  10. Offline

    Kalman Olah

    Version 3.0.3
    • Fixed not being able to whisper players with an underscore in their names. I forgot you could use underscores...
    Probably not, no. It seems like a pretty useless feature.
    I managed to fix (2). I still cannot get 1,5,6 to replicate on my test server. Any chance you could tell me what plugins are being used on this test server you have? Oh, and as for the word wrapping... Are you using the "improved chat mod"? What about SpoutCraft?
     
  11. Offline

    Smidds

    Would it be possible to implement in some Spout features? Like the *typing...* , colored names, most recent chat, and other things (Pretty much just over the players head)? I know there is a plugin out there that does these sorts of things, but I have no idea what it's it's called or where it went :eek:
     
  12. Offline

    Kalman Olah

    Colored names are already included :)
     
  13. Offline

    Jamie Tees

    For some reason I'm getting random crashes with the new update. I have nothing in the console but read timed out. It only started happening with this plugin. Also staff chat was been doubled, publicly (mcMMO staff chat)

    How do i also disable channels?

    Also: [OKChat] ?f?2(Citizen)SpartanChiefXD?e>> ?f

    Can you in console strip the ?f2 ?e

    Well basically strip all un needed info in chat logs?just name and message?

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

    Alien100

    Now i can talk with xAuth and not logged in -.-
     
  15. Offline

    Kalman Olah

    Version 3.0.4
    • Priority overhaul to fix compatability with other plugins such as xAuth, modifyworld, mcMMO, etc...

    You just make one globall channel, and you set it to "unsubscribe: false".

    Also, I'll need an error before I can do anything =/.

    It shows up as colored text on some operating systems though.
    Fixed in 3.0.4.
     
  16. Offline

    seriosbrad

    Been having some issues with console type commands like /tp and /gamemode. It will immediately mute me when issuing the command, still on 3.0.0
     
  17. Offline

    Kalman Olah

    Check your spam protection configuration :)
     
  18. Offline

    Jamie Tees

    Can we at all have an option to strip, I hate logs with tons of crap in them.
     
  19. Offline

    Smidds

    So I take it that other things aren't going to be added then? :'(
     
  20. Offline

    Jamie Tees

    Also I'm getting:

    02:26:07 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.IndexOutOfBoundsException: No group 8
    at java.util.regex.Matcher.start(Matcher.java:374)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:830)
    at java.util.regex.Matcher.replaceAll(Matcher.java:905)
    at java.lang.String.replaceAll(String.java:2210)
    at net.kalmanolah.okchat.OKChannels.handleChatMessage(OKChannels.java:154)
    at net.kalmanolah.okchat.OKChatHandler.handleChatMessage(OKChatHandler.java:28)
    at net.kalmanolah.okchat.OKPlayerListener.onPlayerChat(OKPlayerListener.java:39)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:728)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:716)
    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:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Any idea?

    02:32:14 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.StringIndexOutOfBoundsException: String index out of range: 16
    at java.lang.String.charAt(String.java:695)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:771)
    at java.util.regex.Matcher.replaceAll(Matcher.java:905)
    at java.lang.String.replaceAll(String.java:2210)
    at net.kalmanolah.okchat.OKChannels.handleChatMessage(OKChannels.java:154)
    at net.kalmanolah.okchat.OKChatHandler.handleChatMessage(OKChatHandler.java:28)
    at net.kalmanolah.okchat.OKPlayerListener.onPlayerChat(OKPlayerListener.java:39)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:728)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:716)
    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:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Another error im getting

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

    seriosbrad

    Sometimes I feel like I waste your time :(. I configured chat spam protection thoroughly but somehow totally missed the command spam prevention.
     
  22. Offline

    Kalman Olah

    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.
    Post your configuration file.
     
  23. Offline

    Jamie Tees

    Last edited by a moderator: May 18, 2016
  24. Offline

    Bleaker

    Does anyone else have the problem where it isn't 'banning' nicknames like it should? I'd just like to know if it's me or OKChat. Hopefully it's just me.
     
  25. Offline

    Kalman Olah

    I'm going to need a list of plugins on the server you're testing this on. It's not just OKChat.
     
  26. Offline

    Bloobubba

    Hey, I have recently been using this plugin, and I had just gotten used to the older version, but then I installed the update and I am EXTREMELY confused, if you could put up some previous downloads for me I would be very grateful, Thanks :3
     
  27. Offline

    Kalman Olah

    http://kalmanolah.net/files/dl.php?id=OKChat&ver=2.2.1
     
  28. Offline

    Pim1234

    euh... i can't see players typing anymore when i'm looking at the server window.
    i always used to be able to see it but now i've started to use your plugins and it has vanished :s

    i have 3 persons on the site who all want another prefix... i use PEX and all 3 of us have a '*', how to have the right prefix?

    and if you colour your chat it works fine, but if what you're typing is longer than 1 sentence and it's continued on the next sentence, it's white... that's kinda ugly :(
     
  29. Offline

    Kalman Olah

    1 - Use version 3.0.5

    2 - By correctly using PEX

    3 - Yeah, that's known.
     
  30. Offline

    Pim1234

    euh... could you give me a hint on how to use PEX?
     
  31. Offline

    Jamie Tees

    None of my plugins are having an error. As for a list of plugins. Ahem:
    • Auto Message
    • Banana Map Render
    • Chestshops
    • Command Book
    • False Book
    • Grief detector
    • hawkeye
    • iconomy
    • LWC
    • mcBans
    • mcDocs
    • mcMMO
    • MCSL plugin
    • Minecraft Viewer
    • Mine Vehicles
    • Mob arena
    • Mob arena god
    • Mob disguise
    • Modify world
    • Multi Inv
    • Multiverse
    • MyHome
    • MyWarp
    • Narrowtux lib
    • NoLagg
    • Ok Chat
    • PEX
    • Server log saver
    • Simple auto reply
    • Simple censor
    • Smooth Chat
    • Teleport Suite
    • Vanilla
    • VIP
    • Votifier
    • Voxel Sniper
    • War
    • Welcome New Players
    • WhoMode
    • WorldEdit
    • WorldGuard
    • WorldModes
    • World Saver
    • Login Rewards
    There you go :D
     
Thread Status:
Not open for further replies.

Share This Page