[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

    Kalman Olah

    no prob :).

    Version 1.1.2​
    • Fixed a bug that caused OKChat to throw errors when no prefix was set.
     
  3. Offline

    b00m he@d $h0t

    i get

    [okchat] attempting to enable
    [okchat] permissions plugin not found
    [okchat] attempting to disable okchat
    [okchat] okchat disabled successfully
     
  4. Offline

    Kalman Olah

    What Permissions plugin are you using? My plugin is not compatible with GroupManager/PermissionsBukkit
     
  5. Offline

    b00m he@d $h0t

    im new to bukkit so none i didnt think i needed one
     
  6. Offline

    Nick Hooper

    Restarted my comp, then this happened.

    Code:
    2011-07-31 14:02:37 [SEVERE] Error occurred while enabling OKChat v1.1.2 (Is it up to date?): For input string: ""
    java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at me.kalmanolah.extras.OKUpdater.update(OKUpdater.java:65)
        at me.kalmanolah.oc.OKmain.onEnable(OKmain.java:60)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  7. Offline

    Kalman Olah

    I'm updating my auto-updater =/. It should be working soon.
     
  8. Offline

    Nick Hooper

    Is it possible to make it so it's not dependent among the updater? lol. For a future reference.
     
  9. Offline

    Kalman Olah

    Yeah. I didn't even know this issue existed.

    Version 1.1.3​
    • Hotfix to fix an issue where the plugin crashed when the auto-update server was down.

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

    bocaj812

    should make an auto-updater for your auto-updater...
     
  11. Offline

    Kalman Olah

    The auto-updater for my auto-updater is my plugin's auto-updater.
    derp.jpg
     
  12. Offline

    bocaj812

    [​IMG]
     
  13. Offline

    codename_B

    bInfo support? bInfo uses a universally available bukkit services hook for prefix/suffix. CraftIRC3 uses it - and any plugin using the interface can provide the prefix/suffix so there's no reason NOT to add support :)
     
  14. Offline

    Kalman Olah

    Dat spamming :p.
    Version 1.1.4​
    • Added SuperPerms support.
    • Added bInfo (prefixes/suffixes for superperms) support.
    • Added the %suffix% variable.
     
  15. Offline

    codename_B

    <3

    Just trying to get adoption of this interface ;) let me add this plugin to my bInfo page :D
     
  16. Offline

    Kalman Olah

    Maybe you could test it with SuperPerms too :p. Though I added support, I've no clue if it works :eek:.
     
  17. Offline

    codename_B

    I will do once I finish updating bInfo - I'm adding ChatColor support ^^

    EDIT: ok done - I will test :)

    EDIT2: conflicts, conflicts everywhere. People who are using a SuperPerms to let them keep using old Permissions 2.x based plugins will not be able to use this plugin along with bInfo - just FYI. It NPE's on chat which is a shame. You shouldn't support P2.x and P3.x - or if you do - do it in a seperate build.
     
  18. Offline

    Kalman Olah

    Will do. Need to fix this version first, though. I forgot to add some things :p.
     
  19. Offline

    seriosbrad

    Code:
    vip: '%prefix% %displayname%&f: &f%message%'
    ^ is showing up in-game as "&6seriosbrad: message"

    The prefix is setup correctly in Permissions

    Am I doing something wrong?
     
  20. Offline

    Kalman Olah

    I don't know yet. I'm currently updating OKChat to fix some issues, hang on for a moment :).

    OKChat version? Try it with 1.1.5.

    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

    Just tried 1.1.5, same thing.. hmm

    Using Permissions 3.1.6 with RB1000. It's obviously finding the prefix correctly, just not parsing it in chat
     
  22. Offline

    Kalman Olah

    Can you show me your config.yml? Also, any errors in the console?
     
  23. Offline

    codename_B

  24. Offline

    seriosbrad

    Code:
    time-format: HH:mm:ss
    chat-format:
        default: '(default) %displayname%&7: &f%message%'
        baron: '%prefix% %displayname%&7: &f%message%'
        vip: '%prefix% %displayname%&7: &f%message%'
        overseer: '%prefix% %displayname%&7: &f%message%'
        op: '%prefix% %displayname%&7: &f%message%'
        superop: '%prefix% %displayname%&7: &f%message%'
        owner: '%prefix% %displayname%&7: &f%message%'
    
    And nope, no errors in the console
     
  25. Offline

    Kalman Olah

    The whole idea of storing my prefixes in yet another file is just something I'm not a fan of. Hope you understand =/.

    Oh, your issue is that the colour code &6 isn't parsed into an actual color. My bad, didn't quite understand your issue :p. Hang on while I fix this.

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

    codename_B

    Think of it this way though - the prefixes are all in that one file and are accessible by LOADS of plugins, rather than each plugin having their own prefixes.
     
  27. Offline

    Kalman Olah

  28. Offline

    seriosbrad

  29. Offline

    Kalman Olah

    You're absolutely right, I'm not denying that. I'd still prefer a prefix: key being added to the root permissions.yml / BukkitPermissions/ bPermissions, though.
     
  30. Offline

    codename_B

    bInfo is just an addon for bPermissions/BukkitPermissions
     
  31. Offline

    seriosbrad

    well i'm back, sorry lol.

    Using the same config I posted earlier, there is a [world] or [world_nether] prefix infront of all names. But you'll notice in my config that I do not have world variables in my config :confused: The color parsing fix in 1.1.6 is still working fine :)

    The only difference is that I put OKChat on my live server, but it has all the same files
     
Thread Status:
Not open for further replies.

Share This Page