[INACTIVE] [CHAT/ADMN] iOP - v0.7 Easy Chat Formatting [928] Now with per player Colors!

Discussion in 'Inactive/Unsupported Plugins' started by shadrxninga, Apr 29, 2011.

  1. Offline

    shadrxninga

    iOP
    Custom Chat Colors for OPs​
    The best chat plugin there ever was!!

    Development for this plugin has been continued here , thanks to @Mrchasez

    Old Download and Source
    Version: 0.7 - Download
    Source: Github

    Old Post (open)
    Don't like permissions? But want to stand out from the normal users on your server? iOP is what you need! This plugin allows total customization over your chat format. You can add Prefixes and Suffixes as well as change name colors and message colors for Ops, Normal Player. There is even Per Player Config options for even more customization!

    If you like this plugin then please support me and give a donation - I have worked quite a bit on this and donations would be appreciated :D
    [​IMG]

    Features:
    • Customizable Name Color for Ops and Players
    • Customizable Message Color for Ops and Players
    • Customizable Prefixes and Suffixes With Colors! for Ops and Players
    • Customizable Options Per Player!
    • No need to restart to change name colors, just type /iop
    • A online list with colors.
    How to use the config





    Open up config.yml (In plugins/iOP) in NotePad++ or another text editor (Not NotePad)
    Config (open)

    Code:
    OP-NameColor: '&3'
    OP-MsgColor: '&e'
    OP-Prefix: '&2[&3Admin]'
    OP-Suffix: ''
    Player-NameColor: '&4'
    Player-MsgColor: '&4'
    Player-Prefix: ''
    Player-Suffix: ' &7(Guest)'
    Normal Chat: false
    Colored Online List: true
    shadrxninga:
        prefix: '&1[iOP Dev] '
        name: '&6'
        suffix: '&2 The Amazing!!'
        msg: '&2'
    Bob:
        prefix: 'Builder '
        suffix: 'the Builder'
    
    
    The Numbers stand for color codes:
    Color Codes (open)

    [​IMG]

    So all you have to do is put the code of the color you want in the config and Hey Presto!
    You can choose if you want chat to show like this <player> or like this Player:
    Set Normal Chat to true if you want the default <player>

    Prefixes and Suffixes
    If you want to have a prefix or suffix in front of an ops name just put it in the OPs-Prefix or Player-Prefix field.
    If you want it to be colored put a color code wherever you want that color.
    For example:
    Code:
    &4[&1Admin&4]
    Would look like this in chat:
    [Admin]

    For Player names and prefixes just do what you did with the ops but in the player fields.

    Per Player Colors
    Note: This feature is optional if you don't want to use it just remove everything under the colored online list option.
    This feature allows you to have different name colors per player. Bob can be blue and John could be Red and all other Ops can be purple.
    To do this in the config file add this underneath the other options

    Code:
    playername:
        prefix: '&4[Admin] '
        name: '&6'
        msg: '&e'
    Change playername to the players name you want to change. You can add any of the other options and if you leave one out it will just default to the Op or Players default option

    Note: YML is a very fussy language - if you are having problems paste you config here and it will tell you what is wrong with it. Also if you are using notepad to edit the config... Don't use it, use NotePad++
    If you are still having trouble post your config and I will fix it up for you.

    Commands
    • /iop - Reloads the config (Ops only)
    • /online (Also /list and /playerlist) - displays an online list with iOPs colors
    Changelog:




    Version 0.7
    • Updated for Minecraft 1.6
    • Updated for recommend build 818
    • Changed the way the online list looks - It looks much better!
    • Added the ability to have a suffix in your name
    • Should now work with display name changing plugins ( You still need to use their real name in the config file)
    Version 0.6_02




    • Fixed a bug where null would show up instead of the color in the online list
    Changelog (open)





    Version 0.6_01
    • Removed some debug code
    Version 0.6




    • Added per player settings.
    Version 0.5




    • Added a Colored online list! - Able to be turned off.
    • Updated to RB 766
    Version 0.4




    • Fixed a few formating errors
    • Added the ability to change between <player> and Player:
    Version 0.3




    • Normal players can now have colors and prefixes
    Version 0.2




    • Changed Color Code Format
    • Colors Can Now Be Used In Prefixes
    Version 0.1




    • First Release





    Ideas/Todo
    Commands
    Permissions Support - Optional
    Create Conifig Automagicaly :D
    If you have any ideas feel free to tell me and I will try and include them

    Completed Ideas (open)
    Completed
    • Add Colors and Prefixes for Normal Users Done 0.3
    • Online List With Colors.Done 05
    • Add Prefix Colors Done 0.2
    • Per Player Colors and Prefixes Done 0.6



     
    Mrchasez and Pinkpixels like this.
  2. Offline

    kaasinees

    Well i meant that the player can pick a color that you allow players to pick, it could be set in the settings which colors players are allowed.
     
  3. Offline

    PhantomGamers

    Not sure if I should post this here or in level craft, but is there a possibility of having the prefixes combined with the Skill Mastery Prefix LevelCraft adds?
     
  4. Offline

    shadrxninga

    I have some other work to do besides this at the moment. When I get that finished - tomorrow at the latest. I will update this and hopefully add some new features.
    Possibly - I will have to talk to @Samkio but it should be possible.
     
  5. Offline

    PhantomGamers

    Awesome.

    Because people keep thinking the level 100's with the [C] and such in their names are admins, I wanted to have [B4DA55] for OPs.
    Just to find out they don't mix currently :(

    Good luck, hope you succeed! :)
     
  6. Offline

    Dr0iDzz

    when would be an estimated time you wold implement (Online List With Colors.)In my opinion when you have time give us an estimate on when the next release would be on online list with colors.
     
  7. Offline

    shadrxninga

    @PhantomGamers
    Sorry, I have had a bug for a while and I haven't been feeling that great. I am better know though and will be able to start work on it tonight.
     
  8. Offline

    Mr_Herby

    are you able to copy and past one of the admin/player things and use it to one person? if you can't do it could you add it i would very much like it
     
  9. Offline

    shadrxninga

    Sure, I will try on work on this after I get the online list sorted.
     
  10. Offline

    Mr_Herby

    cool thanks mate :D then i can get my friends to come on my server for once as there like I WANT COLOUR NAME, and i'm like shut the (you fill the blank->) ____ up i'll get it sorted
     
  11. Offline

    shadrxninga

    Version 0.5

    • Added a Colored online list! - Able to be turned off.
    • Updated to RB 766
    @Dr0iDzz
    There you go :D A Colored Online List!

    Next up...
    Per Player Colors
     
  12. Offline

    Dr0iDzz

    Can't Wait for Per Player Colors. That would be awesome this plugin is soo simple.
    if i use essential would that inerup the online colors because the online colors arnt working for me.
     
  13. Offline

    shadrxninga

    hmm, yes I think it would - have you tried disabling the /list command in essentials?
     
  14. Offline

    Dr0iDzz

    i tried but it didnt work i dont like essentials but use it for my players but its fine just as long as Per Player Colors and Prefixes are interupted if you add them.
     
  15. Offline

    shadrxninga

    Version 0.6

    • Added per player settings.
    @Dr0iDzz
    Tell me if this stuffs up when using essentials.
     
  16. Offline

    Dr0iDzz

    iLOVE it per player settings doesnt stuff up nice work can i donate:)
     
  17. Offline

    shadrxninga

    @Dr0iDzz
    Yes, if you want to you can :D. There is a donate button in my signature and in the iOP post.
    I'm glad you like it :D

    If you have any other requests or you find a bug, tell me.
     
  18. Offline

    Dr0iDzz

    i did find one bug i think. when i use per player colors and prefixes the non-op player prefix and colors go away.i think that might be a bug.

    21:32:01 [SEVERE] Could not pass event PLAYER_CHAT to iOP
    java.util.IllegalFormatConversionException: f != org.bukkit.craftbukkit.entity.C
    raftPlayer
    at org.bukkit.event.player.PlayerChatEvent.setFormat(PlayerChatEvent.jav
    a:97)
    at com.scswc.shadrxninga.iop.iOPPlayerListener.onPlayerChat(iOPPlayerLis
    tener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:262)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:289)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:651)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    21:32:01 [INFO] <ºcDinosoresºf> hey



    That might be a problem

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

    Mr_Herby

    ok umm the per player thing dosn't work for me, hmmm this is my config file (i've blanked the names)
    OP-NameColor: '&a'
    OP-MsgColor: '&7'
    OP-Prefix: '&6[&8Admin&6]'
    Player-NameColor: '&6'
    Player-MsgColor: '&4'
    Player-Prefix: '&5[&fPlayer&5]'
    Normal Chat: false
    Colored Online List: true
    ##_#####:
    prefix: '&3[Owner]
    name: '&9'
    msg: '&1'
    ######:
    prefix: '&e[Green Admin]
    name: '&2'
    msg: '&a'
    ########:
    prefix: '&e[Red Admin]
    name: '&2'
    msg: '&a'
     
  20. Offline

    shadrxninga

    @Mr_Herby
    What editor are you using?
    You need to indent the options like this
    Code:
    name:
         prefix
    and you have missed some ' in that config as well.

    Also when pasting a config use the [code']Put Config Here[/code'] without the '
     
  21. Offline

    Mr_Herby

    where am i missing the ' ?
    and here is the config as it is now
    Code:
    OP-NameColor: '&a'
    OP-MsgColor: '&7'
    OP-Prefix: '&6[&8Admin&6]'
    Player-NameColor: '&6'
    Player-MsgColor: '&4'
    Player-Prefix: '&5[&fPlayer&5]'
    Normal Chat: false
    Colored Online List: true
    Mr_Herby:
             prefix: '&3[Owner]
             name: '&9'
             msg: '&1'
    looken:
           prefix: '&e[Green Admin]
             name: '&2'
             msg: '&a'
    Shaemusa:
             prefix: '&e[Red Admin]
             name: '&2'
             msg: '&a'
    and i'm using notepad
     
  22. Offline

    shadrxninga

    @Mr_Herby
    Get an editor called NotePad++ - With notepad you are likely to generate errors in syntax as yml is very fussy.
    You are missing the ' on the end of every prefix option.

    I also tested your config. It is not formated correctly - It needs the ' on the end of every option or it will give an error.

    Tell me if adding the ' works.
     
  23. Offline

    Mr_Herby

    dosn't work :(
     
  24. Offline

    shadrxninga

    @Mr_Herby
    hmm... I got it to work. Are you using Notepad++?
    Try this config.
    Code:
    OP-NameColor: '&a'
    OP-MsgColor: '&7'
    OP-Prefix: '&6[&8Admin&6]'
    Player-NameColor: '&6'
    Player-MsgColor: '&4'
    Player-Prefix: '&5[&fPlayer&5]'
    Normal Chat: false
    Colored Online List: true
    Mr_Herby:
        prefix: '&3[Owner]'
        name: '&9'
        msg: '&1'
    looken:
        prefix: '&e[Green Admin]'
        name: '&2'
        msg: '&a'
    Shaemusa:
        prefix: '&e[Red Admin]'
        name: '&2'
        msg: '&a'
    Use this to check if the syntax is right
    http://yaml-online-parser.appspot.com/

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

    Mr_Herby

    yeah i'm using Notepad++ now

    works now thanks :D

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

    shadrxninga

    @iCloakz
    Open up the zip folder and copy and paste the stuff inside it into the plugins folder. Then you can edit the config. If you need anymore help. Just ask :D
     
    iCloakz likes this.
  27. Offline

    iCloakz

    @shadrxninga

    Thanks! I am so noob....you dont even know. i figured it all out haha.
     
  28. Offline

    GladGulGubbe

    Doesn't work, not at all.
    what to do?
     
  29. Offline

    bob crafter

    I have mine all set up, but it types a 1 before every message i send. heres my config.yml

    OP-NameColor: '&9'
    OP-MagColor: '&7'
    OP-Prefix: '&4[&eAdmin&4]'

    Why is there 1's ?pelase helpp
     
  30. Offline

    shadrxninga

    Well... I can't really help you... I need some more information. Can you post your config? Are there any error messages in your server log? What version of craftbukkit are you running?
    hmm... It looks like you have an old config file. Copy and paste this one and it should remove those 1's!
    The Main post should explain what the new options mean. Remember you can remove the bits I have striked out if you don't want per player colors.

    Code:
    OP-NameColor: '&b'
    OP-MsgColor: '&e'
    OP-Prefix: '&4[&fAdmin&4]'
    Player-NameColor: '&6'
    Player-MsgColor: '&4'
    Player-Prefix: '&5[&fPlayer&5]'
    Normal Chat: false
    Colored Online List: true
    [S]shadrxninga:[/S]
    [S]         prefix: '&1[iOP Dev][/S]
    [S]         name: '&6'[/S]
    [S]         msg: '&f'[/S]
    [S]Bob:[/S]
    [S]     name: '&2'[/S]
    
    If that doesn't work then repost your config.

    Version 0.6_02
    • Fixed a bug where null would show up instead of the color in the online list

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

    GladGulGubbe


    Well, im using the standard config , just to change the OP's color atm (just for trying).
    But the color is still as the original ingame.
     

Share This Page