[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

    Subject0017

    is it me or the download is out of date and won't work with 1.7.3
     
  3. Offline

    Kalman Olah

    The download is up to date.
     
  4. Offline

    Subject0017

    2011-08-26 20:18:41 [INFO] [OKChat] Attempting to enable OKChat v1.4.2 by Kalman Olah...
    2011-08-26 20:18:41 [INFO] [OKChat] Initiating auto-update...
    2011-08-26 20:18:41 [INFO] [OKChat] You already have the latest version of OKChat.
    2011-08-26 20:18:41 [INFO] Fake Permissions version 2.7.2 is enabled!
    2011-08-26 20:18:41 [INFO] [OKChat] Successfully hooked into Permissions plugin.
    2011-08-26 20:18:41 [INFO] [OKChat] Attempting to load configuration file...
    2011-08-26 20:18:42 [SEVERE] Error occurred while enabling OKChat v1.4.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:188)
    at me.kalmanolah.oc.OKConfig.configCheck(OKConfig.java:51)
    at me.kalmanolah.oc.OKmain.onEnable(OKmain.java:120)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    why is it that I get this then or is it to do with essentialschat?
     
  5. Offline

    Kalman Olah

    You have an error in your config. Post your config.Yml.
     
  6. Offline

    Kane

  7. Offline

    Kalman Olah

    Kane likes this.
  8. Offline

    stertingen

    me again...
    Code:
    time-format: HH:mm:ss
    messages:
        join-message: '***&f[%prefix%&f]&7%name%&f hat den Server betreten.'
        quit-message: '***&f[%prefix%&f]&7%name%&f hat den Server verlassen.'
        kick-message: '***&f[%prefix%&f]&7%name%&f wurde vom Server gekickt.'
    internal-formats:
        whisper-from-format: '**Von &f[%prefix%&f]&7%name%&f: %message%'
        whisper-to-format: '***An &f[%prefix%&f]&7%name%&f: %message%'
        emote-format: '***&f[%prefix%&f]&7%name%&f %message%'
        dnd-format: '***&f[%prefix%&f]&7%name%&f akzeptiert momentan keine privaten Nachrichten.'
        ignore-format: '***&f[%prefix%&f]&7%name%&f ignoriert dich.'
    chat-format:
        default:
            weight: '0'
            format: '&f[%prefix%&f]&7%displayname%&f: %message%'
        Admin:
            weight: '100'
            format: '&f[%prefix%&f]&7%displayname%&f: %message%'
        Member:
            weight: '10'
            format: '&f[%prefix%&f]&7%displayname%&f: %message%'
        VIP:
            weight: '20'
            format: '&f[%prefix%&f]&7%displayname%&f: %message%'
        Moderator:
            weight: '90'
            format: '&f[%prefix%&f]&7%displayname%&f: %message%'
    thats my config.yml (yes im german).
    my problem: when i join (quit, /me, etc), the right message appears as it should, but when i type a normal message in the chat, my name is not shown. what am i doing wrong? :(

    edit: im so stupid... i disabled the chat plugin from permisisonsex. now it works. sry...
     
  9. Offline

    Kalman Olah

    Glad it's working for you :).
     
  10. Offline

    Subject0017

    Code:
    time-format: HH:mm:ss
    messages:
        join-message: '&f%prefix%&6%displayname%&f has entered the &c%world%&f!'
        quit-message: '&f%prefix%&6%displayname%&f has left the &c%world%&f!'
        kick-message: you have  been Kicked &f%prefix%&6%displayname%&f!
    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. *'
        ignore-format: '&7* &e%displayname%&7 is ignoring you. *'
    chat-format:
        USER:
            weight: '0'
            format: '&7[&e%world%&7][&b%time%&7] &c%name%&7: &f%message%'
        MODERATOR:
            weight: '50'
            format: '&7[&e%world%&7][&b%time%&7][&2MEMBER&7] %status%&c%name%&7: &f%message%'
        S.ADMIN:
            weight: '75'
            format: '&7[&e%world%&7][&b%time%&7][&aMOD&7] %status%&c%displayname%&7: &f%message%'
        ADMIN:
            weight: '100'
            format: '&7[&e%world%&7][&b%time%&7][&3%prefix%%suffix%&7] %status%&c%displayname%&7:
                &f%message%'
        HOST:
            weight: '100'
            format: '&7[&e%world%&7][&b%time%&7][&3%prefix%%suffix%&7] %status%&c%displayname%&7:
                &f%message%'
    
     
  11. Offline

    Kalman Olah

    Try changing the "S.ADMIN" format name. No decimal points allowed.
     
  12. Offline

    Subject0017

    ok i fixed the config thx but now I get this

    Code:
    2011-09-03 16:09:03 [INFO] <Subject0017> testing
    2011-09-03 16:09:08 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
        at me.kalmanolah.oc.OKmain.CheckPermission(OKmain.java:148)
        at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:40)
        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:338)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  13. Offline

    Kalman Olah

    OKChat only works with Permissions 3.1.x or PermissionsEx.
     
  14. Offline

    Subject0017

    damn I use essentialsgroupmanager
    do you know of any good alternatives to this mod that do the same thing but for group manager?
     
  15. Offline

    DerekZil

    World appears twice... :(
    Also can you add: %group%?
     
  16. Offline

    Kalman Olah

    Users can have multiple groups, don't know if that'd work too well. Can't you use %prefix% for this? Or %suffix%?
    World appears twice because MultiVerse is adding a world prefix. You can disable this in its config.
     
    DerekZil likes this.
  17. Offline

    Jan Malcak

    Hi, I am trying to use your plugin (latest version), but I can not get it run.

    In my Config.yml I have this text:
    Code:
    time-format: HH:mm:ss
    messages:
        join-message: '&f%prefix% %displayname% se pripojil!'
        quit-message: '&f%prefix% %displayname% se odpojil'
        kick-message: '&f%prefix% se zrejme znelibil nekomu dulezitemu.'
    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. *'
        ignore-format: '&7* &e%displayname%&7 is ignoring you. *'
    chat-format:
        default:
            weight: '0'
            format: '&f%prefix% &f%name%: &f%message%'
        hrac:
            weight: '60'
            format: '&3%prefix% &3%name%: &f%message%'
        moderator:
            weight: '80'
            format: '&b%prefix% &b%name%: &f%message%'
        admin:
            weight: '100'
            format: '&e%prefix% &e%name%: &f%message%'
    In Permissions' (version 3.1.6) configuration file:
    Code:
    groups:
      Admin:
        default: false
        info:
          prefix: 'Lord'
          suffix: ''
          build: true
        inheritance: ''
        permissions:
          - 'okchat.format.admin'
          - '*'
      Hrac:
        default: true
        info:
          prefix: 'Nadenik'
          suffix: ''
          build: true
        inheritance: ''
        permissions:
          - 'okchat.format.hrac'
      Moderator:
        default: false
        info:
          prefix: 'Sir'
          suffix: ''
          build: true
        inheritance: ''
        permissions:
          - 'okchat.format.moderator'
    and
    Code:
    users:
      DarioCZ:
        group: 'Admin'
        permissions:
          - '*'
      Lorin:
        group: 'Admin'
        permissions:
          - 'okchat.format.admin'
      Saguaro:
        group: 'Moderator'
        permissions:
          - 'okchat.format.moderator'
      Sasuke:
        group: 'Hrac'
        permissions:
          - 'okchat.format.hrac'
    Everything is ok. I can use command such as for example /emote. But I have small problem with message formating. When I connect into Minecraft, it writes:
    Code:
    Lord Lorin se prihlasil
    What is exactly what I need, but when I send some message, it writes only:
    Code:
    <Lorin> Test of message.
    not
    Code:
    Lord Lorin: Test of message.
    which I am expecting.

    Can you tell me, where is issue? In OKChat or Permissions configuration?

    Sorry for bad English. I will try to improve it soon;)
     
  18. Offline

    Kalman Olah

    What bukkit version are you using? OKChat is optimized for 1060.
    EDIT: Also, if you're using essentials, disable EssentialsChat.
     
  19. Offline

    Subject0017

    Hello
    Yeah i back again but this time with Perms 3x and PEX so the plugin works fine I was just wondering
    How you set the %prefix% to Admin for example?
    Sorry if this is a bit nooby but I'm only 14 *puppy dog face*
     
  20. Offline

    Kalman Olah

    If you go into Permissions' groups.yml you'll see a "Prefix" value under the "Admin" group. Just set it in there.
    Alternately, you can just add the word "Admin" to the Admin OKChat format.
     
  21. Offline

    Jan Malcak

    Thanks for fast reply. Problem was in plugin TextWrap.
     
  22. Offline

    Kalman Olah

    Confirmed to be working on CB 1185
     
  23. Offline

    Vision

    I love you for updating this.

    Thank you. Keep your other plugins up too, please!
     
  24. Offline

    Tanite

  25. Offline

    Kalman Olah

    Version 1.5.0​
    • Compressed code.
    • Added hooks for future handlers for persistent pms.
    • Added anonymous stat sending option.
     
  26. Offline

    Kalman Olah

    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.
    This build requires CB 1220 or above.
    This build requires your config to be remake, or for several values to be added. Consult the example config.yml in the OP to check the changes. I will not reply to posts stating my plugin is broken when in reality the user has not updated their config file.

    Screenshots of the motd/who/tablist in action
    View attachment 6847 View attachment 6848

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

    stertingen

    why does it not support bpermissions AND cb1185? :'(
     
  28. Offline

    Kalman Olah

    Because the method to change a player's listname was added in 1220.
     
  29. Offline

    stertingen

    ok, i think ill have to wait a while.... thanks for the fast answer
     
  30. Offline

    mmerner

    SOLVED: Had to add in the Who formating to the config.


    /who broken?

    ingame says: internal error blah blah..

    server.log:
    Code:
    17:33:27 [INFO] mmerner tried to use command /who
    17:33:27 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin OKChat v2.0.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
            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)
    Caused by: java.lang.NullPointerException
            at me.kalmanolah.oc.OKmain.getWho(OKmain.java:379)
            at me.kalmanolah.oc.OKCmd.onCommand(OKCmd.java:45)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 12 more
    
    bukkit 1240

    plugins:
    17:36:06 [INFO] Plugins: PermissionsEx, MCDocsPlus, TeleportSuite, Vault, LogBlockQuestioner, MultiInv, CleanroomGenerator, WorldEdit, mcbans, ChatManager, FirstLastSeen, Spawnlist, OpenInv, MyWarp, BorderGuard, Modifyworld, OKChat, Permissions, WorldGuard, RageMute, PlgSetspawn, Multiverse-Core, KitPlugin, MyHome, PlgLogCmd, AdminChat, iConomy, Orebfuscator, Playtime, ChestShop, LogBlock, LWC, properTime
     
  31. Offline

    Kane

    Also got this:

    Code:
    03:39:11 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin OKChat v2.0.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
            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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
            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)
    Caused by: java.lang.NullPointerException
            at me.kalmanolah.oc.OKmain.getWho(OKmain.java:379)
            at me.kalmanolah.oc.OKCmd.onCommand(OKCmd.java:45)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 13 more
    Will try to change settings.

    1) You need to make your config add options it does not have hehe. Or it causes errors like /who.

    2) I can't seam to get the colored names in tabbed who. But in normal /who my color names work fine like red.

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

    who-player-list-format: '%prefix%%displayname%%suffix%'

    They are both the same so not sure why /who works for colored names but not tab.

    Thanks ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
Thread Status:
Not open for further replies.

Share This Page