[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

    bocaj812

    One question, upon generating the config, I notice that there is both name, and displayname, is there a difference or are they interchangeable?
     
  3. Offline

    Kalman Olah

    A name is a character's username. This cannot be changed. A displayname is also the character's username by default. The displaynames, however, can be changed by certain plugins such as SimpleAlias. They're nicknames. If you need seperate support for EssentialsChat, let me know and I'll add it.
     
  4. Offline

    bocaj812

    gotcha thanks

    I'm getting this
    Code:
    12:52:14 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
    	at me.kalmanolah.oc.OKmain.parseChat(OKmain.java:166)
    	at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:45)
    	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:332)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    	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:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    and It all has to do with the way I set up my permissions, I have each tier inheriting the previous, so the very last group has 5 chat nodes, and okchat does not like... Any suggestions? I suppose I could just not inherit

    Edit: I have an idea, I'll make fake groups for inheriting purposes and then the real groups will have the okchat node

    UPDATE: um... I actually didnt have any inheritance setup... I don't know how anythings been working this whole time. I got it working once, but do not know what has changed, I'll keep working with it and let you know if I come across anything

    edit: It's probably my global permissions setup, i'll convert it back to per world or fix my global... not sure what I set up wrong but, for right now it has nothing to do with okchat, I've discovered though that, you do get this if a user is not assigned a permission node

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

    Kalman Olah

    If a user doesn't have the node it should give him the default format.

    Just tested having both no node at all and multiple nodes. No errors, worked fine =/.
    @bocaj812

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

    bocaj812

    Ok MY permissions were really screwed up, fixed them, I'm having inheritance issues, but it's not error causing, it appears though that the first one inline will be dominant, so as an admin I would still get registered, but I got it working perfectly by using globalgroups, and assigning the okchat nodes in the per world group.yml, which is cool, because that also means you can assign different prefixes and whatnot with different worlds

    It was probably just my permissions, I never noticed how many errors it had, anywho, It's working flawlessly now!

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

    Kalman Olah

    Glad it's working
     
  8. Offline

    mruczek

    nice simple plugin exactly what i needed
     
  9. Offline

    Kalman Olah

    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.
     
  10. Offline

    bocaj812

    Quick question, I was looking at mChat, and I saw a few cool features, not saying copy the plugin, but interpret it in whatever way you want. One thing I thought would be cool is implementation of BukkitContrib, not sure if you've had any experience with it, but the 'Typing...' message above your head while typing would be cool. Just a suggestion...
     
  11. Offline

    Kalman Olah

    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.
    @bocaj812 : Don't think I'll add support for BukkitContrib, seeing as how the "typing..." message requires the client mod.

    Version 1.1.1​
    • Added the %prefix% format variable. This gets a player's permissions group/user prefix.

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

    bocaj812

    Understandable, what exactly is %prefix%? is that like the one that you set in permissions under info? or is that something else?
     
  13. Offline

    Kalman Olah

    Yup, the Permissions one
     
  14. Offline

    bocaj812

    hey I'm getting one of these since the update...

    Code:
    18:04:56 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
    	at java.lang.String.replace(String.java:2207)
    	at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:202)
    	at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:32)
    	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:332)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    	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:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    18:04:56 [INFO] <bocaj812> bleh!
    
    and nothing has changed othrwise
     
  15. Offline

    Kalman Olah

    Can you post your config.yml real quick? :p
     
  16. Offline

    bocaj812

    Code:
    time-format: HH:mm:ss
    chat-format:
        registered: '&7[&e%world%&7][&4Registered&7] &c%name%&7: &f%message%'
        local: '&7[&e%world%&7][&2Local&7] &c%name%&7: &f%message%'
        vip: '&7[&e%world%&7][&9VIP&7] &c%name%&7: &f%message%'
        moderator: '&7[&e%world%&7][&aModerator&7] &c%name%&7: &f%message%'
        admin: '&7[&e%world%&7][&3Admin&7] &c%name%&7: &f%message%'
    As I said it worked fine before the update, I haven't changed anything on this end
     
  17. Offline

    Kalman Olah

    Works for me, with your exact config.yml. I used the okchat.format.admin one for testing.
    If I were you, I'd add the default: back. This is what OKChat defaults to when no node is present.
     
  18. Offline

    bocaj812

    I switched to the default config and it still is not working. Anyway I can get an older version?
     
  19. Offline

    Kalman Olah

    http://kalmanolah.net/files/dl.php?id=OKChat&ver=1.0.1

    Fill in the version you want: 1.0.0,1.0.1 or 1.0.2

    If you could post a full server log, bukkit ver, OKChat ver, that's help.
     
  20. Offline

    bocaj812

    I don't know what it is, but Ive removed everything but okb3 permissions and okchat and I'm still getting this, oh and Bukkit RB 1000, And I've tried with okchat 1.0.2, and 1.1.1
    Code:
    Last login: Fri Jul 29 01:14:19 on ttys000
    /Users/bocaj812/Desktop/CraftBukkit\ Server/Launch.command ; exit;
    n
    MacBookPro:~ bocaj812$ /Users/bocaj812/Desktop/CraftBukkit\ Server/Launch.command ; exit;
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Do you want to update? (y/n)
    n
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Continuing without update...
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    151 recipes
    16 achievements
    01:16:55 [INFO] Starting minecraft server version Beta 1.7.3
    01:16:55 [INFO] Loading properties
    01:16:55 [INFO] Starting Minecraft server on *:25565
    01:16:55 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    01:16:55 [INFO] [Permissions] (Yeti) was initialized.
    01:16:55 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    01:16:55 [INFO] Preparing level "JMCS"
    01:16:55 [INFO] Preparing start region for level 0 (Seed: -2945350671081178213)
    01:16:56 [INFO] Preparing spawn area: 24%
    01:16:57 [INFO] Preparing spawn area: 52%
    01:16:58 [INFO] Preparing start region for level 1 (Seed: -2945350671081178213)
    01:16:58 [INFO] Preparing spawn area: 24%
    01:16:59 [INFO] [OKB3] Attempting to enable OKB3 v2.5.10 by Kalman Olah...
    01:16:59 [INFO] [OKB3] Initiating auto-update...
    01:16:59 [INFO] [OKB3] You already have the latest version of OKB3.
    01:16:59 [INFO] [OKB3] Successfully hooked into Permissions plugin.
    01:16:59 [INFO] [OKB3] Hooked into permissions plugin.
    01:16:59 [INFO] [OKB3] Attempting to load configuration file...
    01:16:59 [INFO] [OKB3] Configuration file successfully loaded.
    01:16:59 [INFO] [OKB3] [DB] Initializing MySQL connection...
    01:17:01 [INFO] [OKB3] [DB] MySQL connection successful.
    01:17:01 [INFO] [OKB3] [DB] Loading database...
    01:17:01 [INFO] [OKB3] OKB3 v2.5.10 enabled successfully.
    01:17:01 [INFO] [OKChat] Attempting to enable OKChat v1.1.1 by Kalman Olah...
    01:17:01 [INFO] [OKChat] Initiating auto-update...
    01:17:01 [INFO] [OKChat] You already have the latest version of OKChat.
    01:17:01 [INFO] [OKChat] Successfully hooked into Permissions plugin.
    01:17:01 [INFO] [OKChat] Attempting to load configuration file...
    01:17:01 [INFO] [OKChat] Loaded 6 chat format style(s).
    01:17:01 [INFO] [OKChat] Configuration file successfully loaded.
    01:17:01 [INFO] [OKChat] OKChat v1.1.1 enabled successfully.
    01:17:01 [INFO] Server permissions file permissions.yml is empty, ignoring it
    01:17:01 [INFO] Done (0.617s)! For help, type "help" or "?"
    01:17:40 [INFO] bocaj812 [/127.0.0.1:52050] logged in with entity id 156 at ([JMCS] 42.28125, 69.0, -8.3125)
    01:17:40 [INFO] [OKB3] [BRIDGE] bocaj812's ranks synced.
    01:17:44 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
    	at java.lang.String.replace(String.java:2207)
    	at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:202)
    	at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:32)
    	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:332)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    	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:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    01:17:44 [INFO] <bocaj812> hello
    01:17:51 [INFO] Connection reset
    01:17:51 [INFO] bocaj812 lost connection: disconnect.quitting
    
    My Permissions group.yml
    Code:
    groups:
        registered:
            default: false
            permissions:
                - 'okchat.format.registered'
        local:
            default: false
            permissions:
                - 'okchat.format.local'
        vip:
            default: false
            permissions:
                - 'okchat.format.vip'
        moderator:
            default: false
            permissions:
                - 'okchat.format.moderator'
        admin:
            default: false
            permissions:
                - 'okchat.format.admin'
        founder:
            default: false
            permissions:
                - 'okchat.format.admin'
     
  21. Offline

    Kalman Olah

    First of all, did you redownload OKChat v1.1.1? Second, did the older versions work?
    EDIT: Ok, so the error persists in all versions. This would imply that the issue is on your end. Permissions version/config.yml again, please? Also, does the plugin work for ANYONE?
     
  22. Offline

    bocaj812

    It was working fine for me then i Updated to 1.1.1 and it no longer worked, then I tried to downgrade to 1.0.2 and it didn't work so I tried to upgrade again... and it didn't work... Thats my whole permissions file right there and heres my config
    Code:
    time-format: HH:mm:ss
    chat-format:
        default: '&7[&e%world%&7][&4Registered&7] &c%name%&7: &f%message%'
        registered: '&7[&e%world%&7][&4Registered&7] &c%name%&7: &f%message%'
        local: '&7[&e%world%&7][&2Local&7] &c%name%&7: &f%message%'
        vip: '&7[&e%world%&7][&9VIP&7] &c%name%&7: &f%message%'
        moderator: '&7[&e%world%&7][&aModerator&7] &c%name%&7: &f%message%'
        admin: '&7[&e%world%&7][&3Admin&7] &c%name%&7: &f%message%'
    I get no errors in permissions... or at least permissions doesn't tell me I do
     
  23. Offline

    Kalman Olah

    Looks like you're having an error with OKChat not being able to find a prefix for your user because you have none set in PErmissions. Please give me a moment to fix this :).
     
  24. Offline

    bocaj812

    OHHHHH.... but why did it still mess up in 1.0.2? Thanks for your help btw.
     
  25. Offline

    Kalman Olah

    I uhh...Don't know.

    Could you show me the error you got with 1.0.2 please? I don't want to put out a useless fix :p

    @bocaj812

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

    bocaj812

    WEll I can't seem to replicate the error, I might have just gotten the .jars confused. 1.0.2 is working fine, so I do suppose that it is that OKChat is not finding a prefix...
     
  27. Offline

    Kalman Olah

    http://kalmanolah.net/files/dl.php?id=OKChat&ver=1.1.2
    Give it a shot. It now checks if the prefix exists before doing anything stupid.
     
  28. Offline

    bocaj812

  29. Offline

    Kalman Olah

    Great :).
     
  30. Offline

    bocaj812

    Thanks again!
     
Thread Status:
Not open for further replies.

Share This Page