[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

    Spicywiener

    Great thanks :)

    With the config it does not show up any colors when i type in any of the groups my name is just grey.
    Code:
    time-format: HH:mm:ss
    messages:
      join-message: '&6%displayname%&f has appeared!'
      quit-message: '&6%displayname%&f mysteriously vanishes...'
      kick-message: '&6%displayname%&f is not pleased with &6%displayname%&f!'
      message-of-the-day: ''
    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. *'
      dnd-custom-format: '&7* &e%displayname%&7: &f%dndmsg%&7 *'
      ignore-format: '&7* &e%displayname%&7 is ignoring you. *'
    misc-formats:
      tab-list-format: '&2%displayname%'
      who-message-format: '&cThere are currently &f%currentplrs%&c out of &f%maxplrs%&c
        players online.'
      who-world-message-format: '&cPlayer count for world &f%worldname%&c: &f%worldplrs%&c.'
      who-player-list-format: '&b%prefix%%displayname%%suffix%'
    chat-format:
      default:
        weight: '0'
        format: '&8%displayname%&8%suffix%&8: &f%message%'
      Guest:
        weight: '25'
        format: '&8%displayname%&8%suffix%&8: &f%message%'
      Adventurer:
        weight: '50'
        format: '&7%displayname%&7%suffix%&7: &f%message%'
      Seasoned Adventurer:
        weight: '100'
        format:  '&f%displayname%&f%suffix%&f: &f%message%'
      Renowned Adventurer:
        weight: '150'
        format:  '&3%displayname%&3%suffix%&3: &f%message%'
      Mature Adventurer:
        weight: '200'
        format: '&9%displayname%&9%suffix%&9: &f%message%'
      VIP Adventurer:
        weight: '250'
        format: '&c%displayname%&c%suffix%&c: &f%message%'
      Moderator:
        weight: '300'
        format: '&1%displayname%&1%suffix%&1: &f%message%'
      VIP Mod:
        weight: '350'
        format: '&5%displayname%&5%suffix%&5: &f%message%'
      Admin:
        weight: '400'
        format: '&e%displayname%&e%suffix%&e: &f%message%'
      Owner:
        weight: '450'
        format: '&6%displayname%&6%suffix%&6: &f%message%'
    extras:
      enable-anonymous-stat-tracking: 'true'
      enable-console-logging-of-private-messages: 'false'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  3. Offline

    Kalman Olah

    The grey color is "&8", meaning that you are using the "default" format. This is due to you not having the correct chat format. Make sure you have the permission "okchat.format.<name>". Chat format names are case sensitive.
    Some examples:
    okchat.format.Adventurer
    okchat.format.Admin
    okchat.format.Owner

    I strongly suggest you remove the spaces from your chat format names, to not mess up the permission nodes.
     
  4. Offline

    Spicywiener

    Also how would i get it so when someone logs in it logs them in with the color they have set??
     
  5. Offline

    Kalman Olah

    Something like
    Code:
    messages:
        join-message: '&6%prefix%%displayname%&f has appeared!'
     
  6. Offline

    Spicywiener

    That only shows the Rank name i mean like show what colour they are as the rank has set?
     
  7. Offline

    Kalman Olah

    If you want that, you'll have to set the permissions prefixes to the color codes.
    Alternately, you could set the permissions suffixes to their colors, and use %suffix%%displayname% in the join message instead.
     
  8. Offline

    Spicywiener

    Also the who-list setup if i want it so it shows the colour names also how should i do that because i did the %suffix%%displayname% that worked :)
     
  9. Offline

    Kalman Olah

    like this:
    Code:
    misc-formats:
      who-player-list-format: '%suffix%%displayname%'
     
  10. Offline

    Spicywiener

    That seem to not be working, Also how would i do the same for when yuo press tab
     
  11. Offline

    Kalman Olah

    Same thing. <color><name>.
    For you %suffix%(the permissions suffix) contains the color code, so it's %suffix%%displayname% or %suffix%%name%.
    Code:
    misc-formats:
      tab-list-format: '%suffix%%displayname%'
     
  12. Offline

    Spicywiener

    k i think it worked
     
  13. Offline

    domingo15

    you should add the radius for the local chat, it would be great.
     
  14. Offline

    Zedarion

    I get this error when I join the server. Help!
    Error:
    Show Spoiler
    13:13:56 [SEVERE] Could not pass event PLAYER_JOIN to OKChat
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObj
    ect(Ljava/lang/String;Ljava/lang/StringLcom/nijiko/permissions/User;
    at me.kalmanolah.oc.OKmain.getPermPrefix(OKmain.java:183)
    at me.kalmanolah.oc.OKmain.getMessage(OKmain.java:279)
    at me.kalmanolah.oc.OKPlayerListener.onPlayerJoin(OKPlayerListener.java:
    97)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:260)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    Manager.java:129)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:80)
    at net.minecraft.server.Packet1Login.a(SourceFile:59)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    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)
    13:14:07 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObj
    ect(Ljava/lang/String;Ljava/lang/StringLcom/nijiko/permissions/User;
    at me.kalmanolah.oc.OKmain.CheckPermission(OKmain.java:157)
    at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:
    31)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:295)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava: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)

    >

    Config.yml
    Show Spoiler
    time-format: HH:mm:ss
    messages:
    join-message: '&f%prefix%&6%displayname%&f has entered &c%world%&f!'
    quit-message: '&f%prefix%&6%displayname%&f mysteriously vanishes...'
    kick-message: Odin is not pleased with &f%prefix%&6%displayname%&f!
    message-of-the-day: '&cGreetings &f%displayname%&c, and welcome to &f%world%&c.|%wholist%'
    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. *'
    dnd-custom-format: '&7* &e%displayname%&7: &f%dndmsg%&7 *'
    ignore-format: '&7* &e%displayname%&7 is ignoring you. *'
    misc-formats:
    tab-list-format: '&c%prefix%%displayname%%suffix%'
    who-message-format: '&cThere are currently &f%currentplrs%&c out of &f%maxplrs%&c
    players online.'
    who-world-message-format: '&cPlayer count for world &f%worldname%&c: &f%worldplrs%&c.'
    who-player-list-format: '&b%prefix%%displayname%%suffix%'
    chat-format:
    default:
    weight: '0'
    format: '&7[&e%world%&7][&b%time%&7] &c%name%&7: &f%message%'
    builder:
    weight: '50'
    format: '&7%prefix%%suffix% %status%&c%name%&7: &f%message%'
    moderator:
    weight: '100'
    format: '&0[&6Moderator&0]&7 %status%&c%displayname%&7:
    &f%message%'
    admin:
    weight: '150'
    format: '&7[&1A&3d&4m&5i&2n&7]&7 %status%&c%displayname%&7:
    &f%message%'
    owner:
    weight: '200'
    format: '&8[&aO&cw&dn&ee&br&8]&7 %status%&c%displayname%&7'
    extras:
    enable-anonymous-stat-tracking: 'true'
    enable-console-logging-of-private-messages: 'false'
     
  15. Offline

    Kalman Olah

    What's your permissions plugin/version?
     
  16. Offline

    Zedarion

    PermissionsBukkit v1.1
     
  17. Offline

    Kalman Olah

    OKChat supports Permissions, PermissionsEX, GroupManager and bPermissions.
     
  18. Offline

    zecheesy

    @Kalman Olah
    Is it possible to add '/kick $name $message' so you can choose why they were kicked (instead of 'kicked by admin' or 'kicked by console' it will display your $message)?
    Or if that is not possible, could you configure the message the kicked user will have? (instead of 'kicked by admin' it can say like 'kicked by $userthatkickedhim')?
    EDIT: When the kicking the user, could you possibly add another variable? Like instead of "Odin is not pleased with &f%prefix%&6%displayname%&f!" it can have a variable with the person executing the command (so like 2 displaynames). So "$Playerwhokickedtheperson is not pleased with &f%prefix%&6%displayname%&f!
     
  19. Offline

    Kane

    @Kalman Olah

    Should consider fixing who in console of the server.
     
  20. Offline

    kawiz

    Well, I do like this plugin, but I am wondering if this would conflict with essentials at all? For example, would /m for essentials conflict with /m for this?
     
  21. Offline

    Kalman Olah

    I don't know, as I haven't tried.
     
  22. Offline

    Nibelton

    any way to disable autoupdater ?
     
  23. Offline

    rishabh12401

    it told me that OKChat Disabled and i didnt get any folder and config file im on lates version aswell
    Thanks!:)
     
  24. Offline

    Kalman Olah

    OKChat supports Permissions, PermissionsEX, GroupManager and bPermissions.
     
  25. Offline

    minechomp

    Any chance you could add support for SimpleClans? Anyone who has a clan tag has their name turned white. Is this a problem with SimpleClans or OKchat?
     
  26. Offline

    chrban

    Code:
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    30.11 22:01:03 [Server] INFO     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:726)
    30.11 22:01:03 [Server] INFO     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    30.11 22:01:03 [Server] INFO     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    30.11 22:01:03 [Server] INFO     at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:295)
    30.11 22:01:03 [Server] INFO     at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:30)
    30.11 22:01:03 [Server] INFO     at me.kalmanolah.oc.OKmain.CheckPermission(OKmain.java:156)
    30.11 22:01:03 [Server] INFO java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    30.11 22:01:03 [Server] SEVERE Could not pass event PLAYER_CHAT to OKChat
    30.11 22:00:55 [Server] INFO [OKChat] Notice: Configuration reloaded!
    30.11 22:00:55 [Server] INFO [OKChat] Loaded 3 chat format style(s).
    I Get this in my console when i try to reload the OKchat config. Im new to this so I dont know what it means. You have any idea why i get this error message?
     
  27. Offline

    Kalman Olah

    Don't delete the "default" format.
     
  28. Offline

    chrban

    What do you mean? I havent deleted anything.
    Here i my permission config
    Code:
    debug: false
    groups:
        default:
            permissions:
                permissions.build: true
                ChestShop.shop.buy: true
                ChestShop.shop.sell: true
                iConomy.help: true
                iConomy.holdings: true
                iConomy.payment: true
                myhome.home.basic.home: true
                myhome.home.basic.set: true
                myhome.home.basic.delete: true
                myhome.home.soc.others: true
                myhome.home.soc.list: true
                myhome.home.soc.invite: true
                myhome.home.soc.uninvite: true
                myhome.home.soc.public: true
                myhome.home.soc.private: true
                SuperSpawn.goto: true
    
        admin:
            permissions:
                permissions.*: true
                permissions.build: true
                ChestShop.shop.*: true
                iConomy.help: true
                iConomy.holdings: true
                iConomy.payment: true
                myhome.admin.*: true
                myhome.admin.home.any: true
                SuperSpawn.goto: true
     
    messages:
        build: '&cYou do not have permission to build here.'
    I tried to add okchat.format.admin but still nothing..
    When i try to use the commands ingame, such as /afk i get the message An internal error occured while attempting to perform this command. Is it my permissions that is messed up?
     
  29. Offline

    zecheesy

    Post your OKChat Config.
     
  30. Offline

    Kalman Olah

    Make sure you're running the latest version of one of the following:
    Permissions, PermissionsEX, GroupManager or bPermissions.

    Post your config.yml too.
     
  31. Offline

    mangine

    plugin didn't make the folder, does anybody here have the files? I've just copypasta the config.yml from the main topic
     
Thread Status:
Not open for further replies.

Share This Page