[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

    RROD

    Yeh, I'm getting similar. Probably different because I'm using MyMyAdmin. Let me check the server logs. EDIT: I'm using a clean install of the plugin, and no config files are being generated.

    Here is my stack trace - Yes I have PEX:
    Code:
    2011-10-12 00:16:54 [SEVERE] Error occurred while enabling OKChat v2.1.0 (Is it up to date?): Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
    java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
        at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:142)
        at com.nijikokun.bukkit.Permissions.Permissions.getHandler(Permissions.java:80)
        at me.kalmanolah.oc.OKmain.onEnable(OKmain.java:97)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
        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 org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:413)
        at org.bukkit.Bukkit.reload(Bukkit.java:182)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        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)
     
  3. Offline

    Kalman Olah

    Version 2.1.2​
    • Important bugfix.
    To anyone experiencing issues: I would like to apoligize for any inconvenience I may have caused with 2.1.1. All issues have been fixed. OKChat 2.1.2 has been tested and is known to be working on Craftbukkit 1230+.
    You can also visit OKChat's github here:
    https://github.com/kalmanolah/OKChat
     
  4. Offline

    Xmillsa

    Craftbukkit 1317
    OKChat 2.1.2
    Code:
    18:43:29 [INFO] [OKChat] Attempting to load configuration file...
    18:43:30 [SEVERE] Error occurred while enabling OKChat v2.1.2 (Is it up to date?
    ): null
    java.lang.NumberFormatException: null
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.valueOf(Unknown Source)
            at me.kalmanolah.oc.OKConfig.loadkeys(OKConfig.java:156)
            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:170)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.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)
    and without a config file:
    Code:
    18:47:42 [INFO] [OKChat] Attempting to create configuration file...
    18:47:42 [SEVERE] java.lang.NumberFormatException: null
    18:47:42 [SEVERE]       at java.lang.Integer.parseInt(Unknown Source)
    18:47:42 [SEVERE]       at java.lang.Integer.valueOf(Unknown Source)
    18:47:42 [SEVERE]       at me.kalmanolah.oc.OKConfig.loadkeys(OKConfig.java:156)
    
    18:47:42 [SEVERE]       at me.kalmanolah.oc.OKConfig.addDefaults(OKConfig.java:9
    7)
    18:47:42 [SEVERE]       at me.kalmanolah.oc.OKConfig.configCheck(OKConfig.java:2
    7)
    18:47:42 [SEVERE]       at me.kalmanolah.oc.OKmain.onEnable(OKmain.java:131)
    18:47:42 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:170)
    18:47:42 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:957)
    18:47:42 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:280)
    18:47:42 [SEVERE]       at com.ptibiscuit.pluginreloader.PluginReloader.loadPlug
    in(PluginReloader.java:214)
    18:47:42 [SEVERE]       at com.ptibiscuit.pluginreloader.PluginReloader.onComman
    d(PluginReloader.java:80)
    18:47:42 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:40)
    18:47:42 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:163)
    18:47:42 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:355)
    18:47:42 [SEVERE]       at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:757)
    18:47:42 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:722)
    18:47:42 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:715)
    18:47:42 [SEVERE]       at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    18:47:42 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    18:47:42 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:92)
    18:47:42 [SEVERE]       at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetSe
    rverHandler.java:500)
    18:47:42 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :108)
    18:47:42 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:471)
    18:47:42 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:374)
    18:47:42 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:417)
    18:47:42 [SEVERE] [OKChat] Erorr creating configuration file.
    18:47:42 [INFO] [OKChat] Successfully hooked into Permissions plugin.
    18:47:42 [INFO] [OKChat] OKChat v2.1.2 enabled successfully.
     
  5. Offline

    Kalman Olah

    Update to craftbukkit 1330+. Delete your config and let OKChat remake it.
     
  6. Offline

    Xmillsa

    Im using craftbukkit 1317 (1230+) and I have tried with no config file.
    The second error is the one with it making it's own new config file.
     
  7. Offline

    Kalman Olah

    I meant 1330+, sorry.
     
  8. Offline

    Xmillsa

    Ah I tend to only stick to recommended builds myself, I don't upgrade unless it's absolutely necessary.
    For now, 2.1.0 works without problems so I'll be sticking with that.

    I suggest you add that 2.1.2 requires 1330+ in the original post(also your post after RROD), might help stop people like myself incorrectly reporting problems :p
    Awesome plugin btw, keep it up!
     
  9. Hey guys. I was looking at this and was wondering how to add the color codes and stuff for a group such as "Moderator" Which is not included. any help? and btw, the plugin is way better than ichat
     
  10. Offline

    Darq

    You add any group you want to the file.
    Ex:
    Code:
    chat-format:
      default:
        weight: '0'
        format: '%prefix%%name%&7: &f%message%'
      Member:
        weight: '25'
        format: '%prefix%%name%&7: &f%message%'
      Moderator:
        weight: '50'
        format: '%prefix%%name%&7: &f%message%'
      HeadMod:
        weight: '75'
        format: '%prefix%%name%&7: &f%message%'
      Admin:
        weight: '100'
        format: '%prefix%%name%&7: &f%message%'
    Great work on this! Helped me get rid of a few plugins by combining all of their functions.
     
  11. Ok! and to link this to the group, does the group name have to be the same as the OKchat group name?

    Oh, and also, my Member group and Guest group get messed up with this chat. I set up members names just to be &f or white, and for some reason when i repromote my self to member and reload the server, my name Is still gray and says {Guest}. Any help? and I even relogged
     
  12. Offline

    Darq

    the group names do not need to be the same, but you need to specify in your permissions file which group will have which formatting.
    for my above example, if i wanted group 1 to have member chat formatting, i would give the group the permission "okchat.format.member". you might want to read the entire OP
     
  13. Ok will do. I read the main parts i thought were important.Ill read it all

    Bro, this is the best Chat plugin ever. Now that its configured perfectly, I LOVE IT.
     

    Attached Files:

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

    Kane

    Could you please make who work in command line. Thanks :)
     
  15. Offline

    Darq

    @Kane
    I second this motion. "list" in console looks pretty ugly.

    @Kalman Olah And, would you add the ability for us to see other player's PMs in console?
    Edit: One last bit. Colouring signs; you can only use lower case letters. I don't image it would be too hard to allow upper case too.
     
    Kane likes this.
  16. Offline

    Kalman Olah

    If you really want to see PMs in console check out OKLogger, it has an option to log certain commands in the console.
    http://forums.bukkit.org/threads/ad...htweight-chat-and-command-logging-1317.29356/

    Ingame chat package != console "big brother is watching you" plugin

    I just woke up, pretty grumpy.

    Glad you like it :)

    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.

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

    Boost

    Should this work with [1317]?
    It's giving me this error on start up:
    Code:
    2011-10-18 12:05:35 [SEVERE] Error occurred while enabling OKChat v2.1.3 (Is it up to date?): null
    java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:443)
        at java.lang.Integer.valueOf(Integer.java:570)
        at me.kalmanolah.oc.OKConfig.loadkeys(OKConfig.java:156)
        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:170)
        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)
    
    It doesn't change chat format, nor the commands work.
     
  18. Offline

    Kalman Olah

    You need 1330+.
     
  19. Offline

    Crysillion

    Wait. This plugin doesn't work with the latest RB? Was about to download it, but not if I have no choice but to roll with a dev build. No way to download an older version that still works with 1317?


    EDIT: I see they just released #1337. But I just upgraded to #1317 and wouldn't want to go through the hassle of upgrading again so soon. Any chance if you can upload a #1317 version for us people who are not 110% up-to-date with Bukkit? As you can understand, it's tough to do that. So many plugins end up being incompatible with new revisions and act differently and all this...

    I'm looking for an alternative for HeroChat and need one fairly soon. Your plugin looks like it'd actually be a bit of an upgrade from it, minus the lack of channels (which is all good and understandable).
     
  20. Offline

    Kalman Olah

    http://kalmanolah.net/files/dl.php?id=OKChat&ver=2.1.0
    That one should work with RB 1317 :).
     
  21. Offline

    cyberjacob

    a nice plugin, especially as iChat just went defunct, again. pitty about the [SEVERE]s though
    Code:
    2011-10-26 23:24:41 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NoSuchMethodError: de.bananaco.permissions.Permissions.getInfoReader()Lde/bananaco/permissions/info/InfoReader;
    	at me.kalmanolah.oc.OKmain.getPermPrefix(OKmain.java:199)
    	at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:250)
    	at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:42)
    	at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:295)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java: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)
    2011-10-26 23:24:41 [INFO] <cyberjacob> test
    
    
     
  22. Offline

    Kalman Olah

    Permissions plugin&version?
     
  23. Offline

    cyberjacob

    bPermissions 1.2 powered by OKB3
     
  24. Offline

    Kalman Olah

    Try updating to atleast bPermissions 1.4.1.
     
  25. Offline

    cyberjacob

    oh bukkitdev, why do you not update your versioning and forum thread titles?
    (it lives!)
     
  26. Offline

    Kalman Olah

    I'll take that as a "OKChat works now :)". :p
     
  27. Offline

    davvem

    Can't you post the version for 1240 also? :( for meeee? <3
    Love your plugin sooo much :( BUT CAN'T USE IT T.T
    ...Bukkit whon't leak tears, i will :(
     
  28. Offline

    cyberjacob

    can't you loose the bugs and upgrade to the latest version?
     
  29. Offline

    davvem

    No :/ my server aint bugging, lagging or so AT ALL, and many plugins will break if i upgrade, and i'm pretty sure theres a 1240 version too ;)
     
  30. Offline

    Kalman Olah

    I actually deleted the old versions completely. The only one available now is 2.1.3, sorry. :(
     
  31. Offline

    codename_B

    LAWL. Considering we're nearly at v1.8 now XD
     
Thread Status:
Not open for further replies.

Share This Page