[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

    Any errors?
     
  3. Offline

    Darq

    None at all.
     
  4. Offline

    Kalman Olah

    Does it tell you it loaded the chat formats when the plugin starts? It should say how many chat formats it's loading.
     
  5. Offline

    xKoKSii

    ahh ok i was think that it is on Suffix

    Ok now its Ugly im using Suffix and its Display the name in the color after 5 sec and 10 sec later its white -.-

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

    Darq

    Yes. it starts with the exact same messages it always has, when I was using PermissionsEx. All other parts of the plugin work, just not the chat formatting. If you can get it to work with bPermissions 1.8.2, let me know and I'll see what else I can do to see if I can get it to work.
     
  7. Offline

    Kalman Olah

    I guess another plugin is overwriting it.
    Not much you can do. Either you don't have the chat formats set up properly, or players don't have the "okchat.format.<name>" permissions, or you should be getting an error.
    Make sure you didn't delete the "default" chat format. You need that one.
     
  8. Offline

    Darq

    Yes, I know. I've had this working absolutely perfectly before, and I'm 100% certain that my bPermissions permissions are correct. I ask that you try it on 1.8.2 and see if you can/can not get it to work.
     
  9. Offline

    Kalman Olah

    Will do in a few hours. Currently extremely busy on a commissioned plugin.
     
  10. Offline

    Kalman Olah

    Working just fine for me with bPermissions 1.8.2 and OKChat v2.2.0. I did notice that okchat.* does not actually work though. Bukkit's perms bridges are weird with that. You need to actually give groups okchat.format.<name>, okchat.emote, etc...
     
  11. Offline

    Darq

    I was giving groups the individual permissions. I'll see what I can do, might be a conflict with some other plugin, I guess. Though it would be strange for a conflict to show up just from swapping bPermissions and PEX.
     
  12. Offline

    Kalman Olah

    Maybe you're giving them world-specific permissions :eek:.
    I was using the console command "permissions global addnode okchat.<thingymajig> admin", and I gave myself the group admin.
     
  13. Offline

    Darq

    I moved my old global file to just one world.yml, and used the bPermissions mirror system to mirror that one file to all the world we use, and besides, the world that we were testing the formatting on was the world actually had the permissions file. I'll try to take off the mirroring, and add the permission to each world individually and see how that goes.

    Did some tinkering, got it all to work. It was a rather silly mistake on my part, that I'm not even going to bother mentioning.

    Thanks KO.

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

    Kalman Olah

    Go on... I want to know what the problem was now :p.
     
  15. Offline

    Darq

    well fine.
    I had forgotten that in my OKChat configuration that I had formats defined as "%prefix%%name%&7:" for the name, and had remembered that when I was on my test server, name was white but it was formatted correctly, "Name:", so just added prefixes to the bPermissions world file, and all was well. I don't know why I thought I had the actual prefixes defined in the OKChat configuration.

    Meh. >.>

    I was doing all the configuration and testing from a tablet, all I had was a console and crummy file editor on a small screen, easy to miss silly things like that. Figured it out within 5 minutes of going on an actual computer. :3
     
  16. Offline

    Kalman Olah

    Glad it's working for you now :)
     
  17. Offline

    xKoKSii

    Ahh lol thank u Essential /nick is overwriting it.. -.-
     
  18. Offline

    Dauphin14

    Hi Kalman Olah, I like your plugin, but there is a bug : I'm french, and it doesn't supports accents, like éèàùê, etc.

    Can you do that your plugin accept UTF-8 ?
    Thank-You,
    Dauphin14
     
  19. Offline

    Kalman Olah

    I just tested it, and it supports it fine for me =/.
    Where doesn't it support it?
    Also, post your CB version, OKChat version, config.yml and any errors you may have.
     
  20. Offline

    Dauphin14

    Here's the config file, i've got CB 1337.

    Code:
    time-format: HH:mm:ss
    messages:
      join-message: "&f%prefix%&6%displayname%&f s'est connecté(e)."
      quit-message: "&f%prefix%&6%displayname%&f s'est deconnecté(e)."
      kick-message: "&f%prefix%&6%displayname%&f a ete kické."
      message-of-the-day: "&cBienvenue sur le serveur, &f%displayname%&c !"
    internal-formats:
      whisper-from-format: "&7* Message de %status%&e%displayname%&7:&f %message%"
      whisper-to-format: "&7* Message de %status%&e%displayname%&7:&f %message%"
      emote-format: "&7 * &f%displayname%&7 %message% *"
      dnd-format: "&7* &e%displayname%&7 n'accepte pas les messages privés. *"
      dnd-custom-format: "&7* &e%displayname%&7: &f%dndmsg%&7 *"
      ignore-format: "&7* &e%displayname%&7 vous ingnore. *"
    misc-formats:
      tab-list-format: "&c%prefix%%displayname%%suffix%"
      who-message-format: "&cActuellement il y a &f%currentplrs%&c joueurs connectés sur &f%maxplrs%&c."
      who-world-message-format: "&cNombre de joueurs pour le monde &f%worldname%&c: &f%worldplrs%&c."
      who-player-list-format: "&b%prefix%%displayname%%suffix%"
    chat-format:
      default:
        weight: "0"
        format: "&f[&6Habitant&f]&a %status%&c%name%&7: &f%message%"
      Administrateur:
        weight: "100"
        format: "&f[&5Admin.&f]&3 %status%&c%displayname%&7: &c%message%"
      Marchand:
        weight: "15"
        format: "&f[&9Marchand&f]&5 %status%&c%displayname%&7: &f%message%"
      Noble:
        weight: "25"
        format: "&f[&9Noble&f]&5 %status%&c%displayname%&7: &f%message%"
      Moderator:
        weight: "35"
        format: "&f[&5Mj. I&f]&5 %status%&c%displayname%&7: &f%message%"
      Modo2:
        weight: "50"
        format: "&f[&cMj. II&f]&5 %status%&c%displayname%&7: &a%message%"
      SemiAdmin:
        weight: "75"
        format: "&f[&aChef MJ.&f]&5 %status%&c%displayname%&7: &c%message%"
    extras:
      enable-anonymous-stat-tracking: "true"
      enable-console-logging-of-private-messages: "false"
    
     
  21. Offline

    Tomatobaby

    I set it up and all that shows up in minecraft is <name> (name being my MC name)
    Please help!
     
  22. Offline

    zecheesy

    @Kalman Olah
    Can you update it so that
    Code:
      message-of-the-day: '&cHello &f%displayname%! &cPlease type &a/how2play &bif you do not know how!
    &dONLINE: (&4%currentplrs%&d / &5%maxplrs%&d)'
    Would work?
    The %currentplrs% and %maxplrs% only work on who-message-format:.
    so it comes out like:
    Hello zecheesy! Please type /how2play if you do not know how! ONLINE (%currentplrs / %maxplrs%) so they didn't show the real current players or the real max players
     
  23. Offline

    Kalman Olah

    Version 2.2.1​
    • Made %currentplrs% and %maxplrs% usable in more messages.
    @zecheesy

    @Tomatobaby Post your startup log, seems the plugin failed to load. Either that, or you deleted the "default" format. Could be that you are running Essentials, which can override chat formatting if you don't set it to false :).

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

    zecheesy

    Hey @Kalman Olah how do I get rid of the "Welcome to" in this (when I join game):
    Show Spoiler

    [​IMG]


    This is my config and I couldn't find a "Welcome to" inside it:
    http://pastebin.com/L1qyAASy
     
  25. Offline

    Kalman Olah

    Looks like it's not OKChat related. Could be Multiverse, Essentials, all kinds of other stuff. Got a list of plugins?
     
  26. Offline

    zecheesy

    Bigbrother
    ColorSign
    ComLog
    CommandHelper
    GamemodeChanger
    iZone
    LongSummerDays
    NoCheat
    NoWeather
    OKChat
    Permissions
    PermissionsEx
    SimpleGive
    TNTCannon
    Vanilla
    Are my plugins ^^
     
  27. Offline

    Kalman Olah

    Looks like you're getting an iZone welcome message on login, I think :).
     
  28. Offline

    Spicywiener

    I have been getting this error
    Code:
    19:55:24 [SEVERE] Could not pass event PLAYER_CHAT to OKChat
    java.lang.NullPointerException
            at me.kalmanolah.oc.OKmain.getFormat(OKmain.java:239)
            at me.kalmanolah.oc.OKPlayerListener.onPlayerChat(OKPlayerListener.java:
    41)
            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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :501)
            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)
    19:55:24 [INFO] <Spicywiener> ho
    Config =
    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:
      Guest:
        weight: '0'
        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'
     
  29. Offline

    Kalman Olah

    You need to have a chat format called "default" in there. It's the format chat is set to if people have no permissions.
     
  30. Offline

    Spicywiener

    Okay thanks alot :)
    Also do i have to use the MOTD??
     
  31. Offline

    Kalman Olah

    Not at all, just set the motd to an empty string or remove the motd from your config to disable it :).
     
Thread Status:
Not open for further replies.

Share This Page