[CHAT] XcraftChat v0.2 - Chat formatting w/o permissions plugin dependencies [1000-1317]

Discussion in 'Inactive/Unsupported Plugins' started by Engelier, Aug 4, 2011.

  1. Offline

    Engelier

    XcraftChat - Version: v0.2.2

    Just another chat formatting plugin, trying to get rid of permission plugin dependencies.

    Still permissions are used to determine some settings, but you don't have to use it for "groups". So this also works with SuperPerms.

    Supports SuperPerms and any permissions plugin providing a Permissions 2.x compatible interface.

    Commands:
    • /xchat - reloads the XcraftChat config


    Permissions
    XcraftChat.reload - permission to use /xchat


    Downloads:
    XcraftChat.jar (wget friendly)


    Installation:
    Put the XcraftChat.jar into your plugins folder and reload/restart your server. A default config will be created automatically.


    Source Code:
    github (Licence: GPLv3)


    Configuration:

    The config.yml is splitted into 3 sections.

    a) The config section

    Example (open)

    Code:
    config:
        chatformat: [$group$] $playername$: $message$
        timeformat: HH:mm:ii
    


    The chatformat config describes the format of your chatlines. Tags are enclosed by $. You can use any tagname you like. Unknown tags will be replaced with "".

    The timeformat config describes the apperance of the time tag. This can be any String recognised by SimpleDateFormat

    Predefined tags are playername, message, health (The player's health in the range of 0-20), world and time.

    Predefined tags can be overwritten in the permissions section.

    b) The permissions section

    In the permissions section you define or overwrite tags specific to the users having a certain permission.

    Example (open)

    Code:
    permissions:
        some.permission.node:
            group: SomeGroup
        some.bad.permission.node:
            group: BadUser
            message: I'm stupid!
    


    You can use permission nodes provided by other plugins or create your own ones.

    The first permission that matches wins. To use the example above, if a user has "some.permission.node" AND "some.bad.permission.node" the first one would be used.

    c) The users section

    In the users section you define or overwrite tags specific to single users.

    Example (open)

    Code:
    users:
        Engelier:
            group: Developer
            playername: Son of Notch
    



    Tags are parsed in the following order: Global predefined tags => permission tags => user tags.

    Given I had the permission "some.bad.permission.node" and NOT "some.permission.node" and all the examples above in the config.yml my chatlines would look like this:

    [Developer] Son of Notch: I'm stupid!

    You can use ColorCodes in your chatformat and tags. ColorCodes are defined by a & followed by it's hexadecimal number found here.


    Donations:

    Note: For sure donating is purely optional! XcraftChat is released under the terms of GPLv3, so you have (and will always have) the freedom to use, study, share and improve it as you like!
    [​IMG]


    Changelog:
    Verions 0.2.2
    • delayed permission registration until after all plugins have been enabled
    Version 0.2.1
    • "fixed" bukkit leaking tears when not using SuperPerms
    Version 0.2
    • added config options for single users
    Version 0.1
    • public release
     
  2. Offline

    Plague

    Sorry for the delay in submission approvals, I've been away for a while.
     
  3. Offline

    kuyan

    Bug report: on reload, titles go away. Also, when group is changed via /permissions player setgroup kuyan SupremeDictatorOfEveryone, ranks disappear.
    Plugins: BigBrother, BorderGuard, ColorMe, CommandBook, HeroicDeath, Jail, MagicCarpet, MineBackup, MultiInv, MultiVerse, MyHome, MyWarp, PermissionsBukkit, PortalStick, RocketBoots, ServerSave, Spout, Permissions, WorldEdit, WorldGuard, XcraftChat, Citizens, LWC
    No relevant server log
    Bukkit version: git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks
    plugins/Xcraftchat/config.yml
    Code:
    users:
    permissions:
        xcc.tag.guest:
            group: Guest
            tag: '&f[Guest]'
        xcc.tag.builder:
            group: Builder
            tag: '&2[Builder]'
        xcc.tag.architect:
            group: Architect
            tag: '&3[Archt]'
        xcc.tag.mod:
            group: Mod
            tag: '&b[Mod]'
        xcc.tag.admin:
            group: Admin
            tag: '&7[Semi]'
        xcc.tag.owner:
            group: Owner
            tag: '&4[Admin]'
    config:
        chatformat: '$tag$&f $playername$: $message$'
        timeformat: HH:mm:ss
    
     
  4. how do i add other users to the config.yml file?

    If i do it my way, al the other text turned red.

    help me please;D

    Grtz
     
  5. Offline

    Engelier

    It would help if you'd post your config.yml.
     
  6. Code:
    users:
        Ixbitz:
            tag: '&aAdmin&f'
    permissions:
        some.permission.node:
            tag: '&aAdmin&f'
    config:
        chatformat: '[$tag$] $playername$: $message$'
        timeformat: HH:mm:ss
     
  7. Offline

    Engelier

    I can see no error there. But there also is only one user.
    Please show me your config.yml when you get the error.
     
  8. It's just fixed, a friend helped.

    but thx anyway
     
  9. Offline

    NiliusJulius

    This is one of the few plugins that does not collide with some other plugins that use prefixes :) It shows both the prefixed set here and set in the other plugin.
    One question though, is it possible to set message color for players individually?

    So 2 minutes after I posted I suddenly thought of something else to try and it worked :D

    Code:
    users:
        NiliusJulius:
            tag: '&4[&cAdmin&4]&f'
            messagecolor: '&6'
        Engelier:
            tag: '&cX&9craft&aDev&f'
    permissions:
        some.permission.node:
            tag: '&cX&9craft&aChat&f'
    config:
        timeformat: HH:mm:ss
        chatformat: '$tag$ $playername$: $messagecolor$$message$'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  10. Offline

    jespertheend

    Finally, exactly what I need. And it works for 1337 :p
     

Share This Page