[CHAT] iChat 2.6.3 - Custom Chat Formatting

iChat Support and Discussion
Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

[CHAT] iChat 2.6.3 - Custom Chat Formatting

Postby Drakia » October 26th, 2011, 10:08 pm

iChat 2.x - Custom Chat Formatting
Version: 2.6.3
CraftBukkit: 1.4.5+

Plugin Support:
PermissionsBukkit
bPermissions (2.8.0 or later)
Permissions 2.x
Permissions 3.x

If you are requesting help, post your entire server log (From the time it opens, until somebody talks), your entire Permission config file (As well as what it's named), and iChat config files. This information is REQUIRED for me to help you.
http://pastebin.com/ <-- Post configs there when asking for help

=============
Description
=============
Custom chat formatting.
Based on the idea of iChat v1.5 by Nijikokun.
Includes code and concepts from mChat by MiracleM4n <https://github.com/MiracleM4n/mChat/>

Before downloading: iChat 2.4.x has quite a few changes over the 2.3.x branches. All permissions plugins are handled in one plugin, and they all operate in relatively the same way now. This means you WILL need to redo your configs.
Download (Direct JAR): http://thedgtl.net/bukkit/iChat.jar
Source: https://github.com/TheDgtl/iChat

=============
Features
=============
Supports Permissions (Both 2.0 and 2.1), and SuperPerms handlers (PermissionsBukkit, bPermissions, GroupManager, and PermissionsEx).
Allows you to specify a prefix/suffix/variable for users and groups on a per-world or global basis.
A user-specific prefix/suffix/variable will take priority over a group prefix/suffix/variable, a world-based prefix/suffix/variable will take priority over a global prefix/suffix/variable.
Unlimited amount of custom variables for use in chat format.
Colors are supported in all parts of the formatting and chat text.
Usable health bar and health amount in the formatting.
Support for formatting of /me
World-wide variable support
Support for offsetting timestamps

=============
Formatting
=============
Message formatting is defined in the file plugins/iChat/config.yml
The message formats can contain characters, color codes, and variables.
To use colors use the standard Minecraft color codes found here: http://www.minecraftwiki.net/wiki/Classic_Server_Protocol#Color_Codes

Available variables:
+prefix - The prefix for this user, or this users group if they don't have one defined.
+suffix - The suffix for this user, or this users group if they don't have one defined.
+name - The users name
+displayname - The users display name (Set by plugins such as Towny)
+iname - The iChat formatted player name (Defined by iname-format)
+group - The users group
+healthbar - A visual health bar for this user
+health - The users current health value (Between 0 and 20)
+message - The message the player typed
+world - What world the player is currently in
+time - Timestamp, configurable in config.yml. Uses the format for SimpleDateFormat - http://bit.ly/dscw40

Example (Default):
Code: Select all
iname-format: '[+prefix+group+suffix&f] +displayname'
message-format: '+iname: +message'
me-format: '* +name +message'
date-format: 'HH:mm:ss'
handle-me: true


Example date-format (Default):
date-format: 'HH:mm:ss'

As of iChat 2.4.0 there have been a few changes in the way variables and groups are handled.

==========
Groups
==========
As of iChat 2.4.3 native groups are supported in Permissions 2.x/3.x, PermissionsBukkit, bPermissions, and PermissionsEx.
As of iChat 2.6.2 native groups are supported in Privileges

==========
Variables
==========
Variables are now defined in variables.yml in the iChat directory. This includes prefixes, suffixes, and custom variables.
You can define an unlimited number of custom variables for groups and users, if these variables contain the static variables such as +prefix,
+suffix, +health, etc then those variables will be replaced with their respective values.
If a variable does not exist then it will be replaced with a blank string.

As of iChat 2.4.4 you can now specify world-specific variables. To specify a per-world group or user variable (Prefix, suffix, or variable) you just specify it under the world as shown in the 'world' example in the default variables.yml below. Anything specified in the parent 'users' or 'groups' nodes will be considered global for all worlds.
As of iChat 2.5.0 there are now world-wide variables, these are loaded first, and overwritten by group/user specific variables. To specify a world-wide variable just specify it under the world as shown in the 'world' example below.

Default variables.yml:
---------------------
Code: Select all
# iChat Variable Config
# This is now the only method for defining variables
users:
    Drakia:
        prefix: '&e'
groups:
    Admin:
        prefix: '&c'
        suffix: ''
    Default:
        prefix: ''
        suffix: ''
world:
  users:
    Drakia:
      prefix: '&a'
  wName: '[World] '


Default config.yml:
---------------------
Code: Select all
handle-me: true
date-format: HH:mm:ss
message-format: '+iname: +message'
me-format: '* +name +message'
iname-format: '+{wName}[+prefix+group+suffix&f] +displayname'
me-permissions


=============
Examples
=============
To make a group colored:
variables.yml:
Code: Select all
groups:
    Default:
        prefix: '&4'
        suffix: ''

config.yml:
Code: Select all
message-format: '[+prefix+group&f] +name: +message'


To make a single username colored:
variables.yml:
Code: Select all
users:
    Drakia:
        prefix: ''
        suffix: '&1'

Config:
Code: Select all
message-format: '[+prefix+group&f] +suffix+name&f: +message'


As you can see, suffixes and prefixes can be used anywhere, in any combination. In this example we use prefix as a method for coloring group names, while suffix is used to color individual users. On our server we have prefixes such as "&f[&2Mod&f] " so that we can have custom tags per group instead of just the groups name. There is no end to the combination of things you can do, please TRY things before you come asking for someone else to do it for you. There are too many combinations of things for me to answer every question about how to color specific things.
I will not be offering answers to questions such as "How do I color names?" or really anything else to do with specifics of formatting. It's pretty straightforward what you can do, and if you can't take the time to experiment then I'm not going to take the time to answer your questions.

=============
Configuration
=============
Code: Select all
iname-format - The format used for +iname (Default: '[+prefix+group+suffix&f] +displayname')
message-format - The format used for basic chat (Default: '+iname: +message')
date-format - The format used for +date (Default: 'HH:mm:ss')
me-format - The format used for /me commands (Default: '* +name +message')
handle-me - Whether to handle /me commands (Default: true)
time-offset - If defined, will offset the time by that many hours from GMT. This is not an offset from your current timezone.
              For example, having the value as -1 will set the timestamps to use GMT-1. Not having this line will set the timestamps
              to be your servers current timezone. (Default: Not set)


=============
Permissions
=============
ichat.format.color - Allow this group/user to use color in their chat messages.
ichat.format.formatting - Allow this group/user to use formatting in their chat messages.
ichat.color - Allow this group/user to use both color and chat formatting in their chat messages (Legacy)
ichat.reload - Allow reloading the iChat config

=============
Commands
=============
/ichat reload - Reload the iChat config file

=============
F.A.Q.
=============
Q) Why is the timestamp wrong when people chat?
A) Please make sure you have no defined the "time-offset' line in your config file if you want to use your servers time. If you are using an offset, be aware that the offset is from GMT, and not from your servers current time.

Q) Why is my custom message format not working? I just get the default output. Or output with no variables filled in.
A) If you're using Permissions 2.1, make sure your Permissions config file is named "{worldname}.yml" where {worldname} is the name of your world. If you're using Permissions 2.0, make sure your Permissions config is named config.yml

Q) How do I set the brackets color to the same as the group?
A) Normally you have the brackets in the message-format variable, but you can just as easily move them into prefix/suffix and that way they can be per-group colored!

Q) Why is my entire string colored? I just put a color code beside +name!
A) A color code will persists until another color code is encountered, or the end of the line is reached. To change the line back to white use &f after the variable/string you want colored.

Q) Why are my OPs names red?
A) Essentials has this functionality built in. Change "ops-name-color" to 'none' in your Essentials config file.

Q) Why does {PluginX} not work with iChat?
A) There's a good chance it does, but you need to use +displayname instead of +name.

Q) Why does Towny not work with iChat?
A) iChat no longer uses %1$s for the player name, it uses player.getName() and player.getDisplayName(), until such a time that Towny is updated to use the proper method of setting a players name (Set their displayName) it will not work with iChat.

Q) iChat is not reading my prefix/suffix from my Permissions handler, why not?
A) iChat uses its own Variable Handler to deal with prefixes/suffixes/variables, this allows it far more flexibility than could be offered from any Permission handler, and allows you to completely change Permission handlers without needing to redo your entire variable setup.

=============
Changes
=============
[Version 2.6.3]
- Update bPermissions hooks
- Update MCStats to v6
[Version 2.6.2]
- Added support for Privileges
- Added support for a timezone offset
- Added MCStats metrics tracking
[Version 2.6.1]
- Resolve issue where I accidentally cancel all plugin tasks. Oops.
[Version 2.6.0]
- Implemented the AsyncPlayerChatEvent.
- Resolved issues with interaction between iChat and plugins such as Factions.
- More strict caching of data
- Implemented a time-based cache refresh. This is due to not being able to make the calls I require in an ASync event.
- The refresh rate of the cache is configurable in the config.yml. It is not recommended to set this any lower than 100 ticks (5 seconds).
[Version 2.5.9]
- Revert changes to VariableHandler
- Revert to using PlayerChatEvent as Bukkit itself is not thread safe
- Add /me permission/config
- Hopefully resolve NPE in loadConfig of VH
- Add support for GroupManager
[Version 2.5.8]
- Add ichat.format.color/formatting permissions for more customization
- Switch to the new "AsyncPlayerChatEvent"
- Thread-safe VariableHandler
- Build against 1.3.1
[Version 2.5.7]
- Fixed issue with players saying +m in chat duplicating chat message
[Version 2.5.6]
- Implemented my own dYamlConfiguration class for loading variables.yml, this is required as Bukkit's config class lacks Unicode support
- Use Bukkit's implementation of addColor, as it's faster than the RegEx I was using
[Version 2.5.5]
- Color the rest of the "should not exist" color spectrum
[Version 2.5.4]
- Added new &k color code
- Color codes now case insensitive
[Version 2.5.3]
- Updated iChatMeEvent for new event system
[Version 2.5.2]
- Updated for bPermissions 2.9.0 (Requires 2.8.0 or later)
[Version 2.5.1]
- Quick update to event handling for 1.1-R5 spec
[Version 2.5.0]
- Added world variables for further customization
- Updated event handling to 1.1-R3 spec
[Version 2.4.5]
- Fixed reload command not reloading config properly
[Version 2.4.4]
- Updated to new FileConfiguration class
- Fixed bypass exploit for colors in messages
- Multi-world support for variables.yml
- Resolved an issue with /me not reloading player variables
[Version 2.4.3]
- Permissions overhaul. No longer require group.{name} node unless not using a permissions handler
[Version 2.4.2]
- Fixed issue with inheritance in Permissions
- Implemented start of online time variable. Need output format.
[Version 2.4.1]
- Remove plugin-specific group referencing. All groups are now managed via group.* nodes,
the exception being pure Permissions 2.x/3.x
- Fixed /ichat reload not reloading variables.yml
- Updated /me to use BroadcastMessage
[Version 2.4.0-final]
- Took out variable caching, there's no hook for PermissionChange.
- Updated README to include info on group.* nodes
[Version 2.4.0-beta]
- Merged all branches into one
- Supports Perms 2.x/3.x, SuperPerms, GroupManager
- Added a more advanded API based on the mChat API
- Massive thanks to MiracleM4n for code and concepts
- All variables are now retrieved from variables.yml instead of Permissions
- Removed censor code
[Version 2.3.2-p3]
- Set Permissions as a dependency in plugin.yml
- Added Permissions 3 support to the -p3 jar
[Version 2.3.1]
- Added iChat.ichat.parseChat(Player, String, Format) API
- Added hook for /me chat formatting using the "me-format" config option
[Version 2.3.0]
- Added external iChat.ichat.parseChat(Player, String) API
[Version 2.2.3]
- Added +displayname/+d for player.getDisplayName()
[Version 2.2.2]
- Updated to latest RB
[Version 2.2.1]
- Updated how Permissions is loaded
[Version 2.2.0]
- Added the ability to have an unlimited amount of variables in message-format
- Changed versioning scheme
[Version 2.11]
- Now uses per-world permissions information
[Version 2.10]
- Allow admins to enable color on a permissions basis
[Version 2.09]
- Another small update to Permissions (Returned false when I should have returned true)
[Version 2.08]
- Pushes PacketCollisions PermVersion change. Fixes issues with 2.5.2
[Version 2.07]
- Added +time tag
[Version 2.06]
- Added +world tag
[Version 2.05]
- Ignore whether the plugin is GM, just treat everything as Permissions! Means you need FakePermissions.
[Version 2.04]
- Added the ability to use variables in the suffix and prefix (More customizeable messages)
[Version 2.03]
- Verify that all available variables aren't null before calling parse
- Fixed crash caused by color code at end of message (Basic fix, added a space)
[Version 2.02]
- Fix for possible NPE
[Version 2.01]
- There's a bug in Permissions 2.1 in getPermissionString, switched to getUserPermissionString
[Version 2.00]
- Initial re-write of Niji's plugin.
- Added Permissions 2.0/2.1, and GroupManager support.

Odie680
 
Posts: 1
Joined: November 5th, 2011, 3:44 pm

[CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Odie680 » November 5th, 2011, 3:55 pm

Thanks for this!

Amazing plugin, shame to see the bukkit staff being such butt-hurt twats.

Hope you keep it up. :)
Last edited by Odie680 on November 1st, 2013, 1:16 pm, edited 1 time in total.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Drakia » November 5th, 2011, 4:37 pm

Odie680 wrote:Just wanted to report a bug.

Please re-read the first post, variables are no longer retrieved via Permissions, they are now stored in variables.yml.
If you require any further assistance please read the first post for the information I require to give assistance.

kawohi
 
Posts: 2
Joined: November 25th, 2011, 6:13 am

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby kawohi » November 25th, 2011, 6:19 am

The latest dev build (#1502) of bukkit broke iChat. :/

It is suppose to be displayed as [group]: kawohi but now it only displays kawohi. This is my sittings which worked perfect before the update:

Code: Select all
handle-me: true
date-format: HH:mm:ss
message-format: '+iname: +message'
me-format: '* +name +message'
iname-format: '[+prefix+group+suffix&f] +displayname'


Also using PEX for permissions.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Drakia » November 25th, 2011, 8:58 am

Kawohi, could you post a server log for me? It's gonna be around 8 hours before I'm Back at home and can look more into this bug.

kawohi
 
Posts: 2
Joined: November 25th, 2011, 6:13 am

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby kawohi » November 25th, 2011, 4:20 pm

Code: Select all
18:10:42 [INFO] WorldGuard: PermissionsEx detected! Using PermissionsEx for perm
issions.
18:10:42 [SEVERE] WorldGuard: Unable to read default configuration: blacklist.tx
t
18:10:42 [WARNING] WorldGuard blacklist does not exist.
18:10:42 [INFO] WorldGuard: (world) Single session is enforced.
18:10:42 [INFO] WorldGuard: (world) TNT ignition is blocked.
18:10:42 [INFO] WorldGuard: (world) Lighters are blocked.
18:10:42 [INFO] WorldGuard: (world) Lava fire is blocked.
18:10:42 [INFO] WorldGuard: (world) All fire spread is disabled.
18:10:42 [INFO] WorldGuard: Loaded configuration for world 'world"
18:10:42 [SEVERE] WorldGuard: Unable to read default configuration: blacklist.tx
t
18:10:42 [WARNING] WorldGuard blacklist does not exist.
18:10:42 [INFO] WorldGuard: (world_nether) Single session is enforced.
18:10:42 [INFO] WorldGuard: (world_nether) TNT ignition is blocked.
18:10:42 [INFO] WorldGuard: (world_nether) Lighters are blocked.
18:10:42 [INFO] WorldGuard: (world_nether) Lava fire is blocked.
18:10:42 [INFO] WorldGuard: (world_nether) All fire spread is disabled.
18:10:42 [INFO] WorldGuard: Loaded configuration for world 'world_nether"
18:10:42 [WARNING] WorldGuard: Region file for world "world" missing or inaccess
ible.
18:10:42 [WARNING] WorldGuard: Region file for world "world_nether" missing or i
naccessible.
18:10:42 [INFO] WorldGuard 5.3 enabled.
18:10:42 [INFO] [PermissionsCompat] Compatibility layer enabled.
18:10:42 [INFO] WorldEdit: PermissionsEx detected! Using PermissionsEx for permi
ssions.
18:10:42 [INFO] WorldGuard: PermissionsEx detected! Using PermissionsEx for perm
issions.
18:10:42 [INFO] [iChat] Found PermissionsEx v1.16
18:10:42 [INFO] iChat (v2.4.4) enabled
18:10:42 [INFO] Server permissions file permissions.yml is empty, ignoring it
18:10:42 [INFO] Done (0.632s)! For help, type "help" or "?"
18:10:42 [INFO] [FalseBook Block] 0 Bridges successfully loaded.
18:10:42 [INFO] [FalseBook Block] 0 Doors successfully loaded.
18:10:42 [INFO] [FalseBook Block] 0 protected gateblocks successfully loaded.
18:11:17 [INFO] /127.0.0.1:53691 lost connection
18:11:19 [INFO] kawohi [/127.0.0.1:53693] logged in with entity id 0 at ([world]
485.5476058281755, 68.54999996695425, 526.5910197531686)
18:11:24 [INFO] [default] kawohi: test
18:11:28 [INFO] [default] kawohi: test
18:11:28 [INFO] [default] kawohi: test


it shows the group default, but it should say something else and it's but its not showing the custom prefix nor the colors.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Drakia » November 26th, 2011, 11:04 am

kawohi, I've looked into it and Pex and iChat are still working as of build 1509. If you post your Permissions config I may be able to determine what's wrong. You could also try updating to the latest development build of Pex (1.17) if you're using a dev build of Bukkit.

RustyHoff
 
Posts: 4
Joined: November 27th, 2011, 7:16 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby RustyHoff » December 2nd, 2011, 6:30 pm

can you make it so when you use /ichat reload it reloads everything? if i change formating it wont take place until i restart the server

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Drakia » December 2nd, 2011, 7:30 pm

RustyHoff, I'll look into this, it should be doing that already but I know the new configuration methods are a little weird, I probably have something backwards.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby Drakia » December 3rd, 2011, 8:12 pm

RustyHoff, just a heads up, uploaded v2.4.5 that fixes the issue :)

[Version 2.4.5]
- Fixed reload command not reloading config properly

RustyHoff
 
Posts: 4
Joined: November 27th, 2011, 7:16 pm

Re: [CHAT] iChat 2.4.4 - Custom Chat Formatting [1337]

Postby RustyHoff » December 5th, 2011, 11:20 am

Drakia wrote:RustyHoff, just a heads up, uploaded v2.4.5 that fixes the issue :)

[Version 2.4.5]
- Fixed reload command not reloading config properly

Thank you sir!

Jamy
 
Posts: 1
Joined: December 10th, 2011, 4:11 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting [1337-1550]

Postby Jamy » December 10th, 2011, 4:14 pm

I <3 you!
Much better then mChat (no permission nodes needed :D)
Works like a charm on PermissionsEX running bukkit 1572.
<3 <3 <3

Jamy

Gimlao
 
Posts: 7
Joined: October 29th, 2011, 5:50 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby Gimlao » January 4th, 2012, 9:14 am

It don't want to customize the /me command, can you confirm ?

User avatar
ZeroPoke
 
Posts: 103
Joined: October 26th, 2011, 9:38 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby ZeroPoke » January 5th, 2012, 1:00 am

Gimlao wrote:It don't want to customize the /me command, can you confirm ?


Mine is customized.
Image

templar63
 
Posts: 1
Joined: January 5th, 2012, 1:10 am

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby templar63 » January 5th, 2012, 1:17 am

Titles do not work for player '9290' on my server. I am guessing that this is a bug in the plugin, but please reply whether it is, or if I made a problem when coding the prefix. Here is the code:
Code: Select all
users:
    templar63:
        permissions:
            permissions.*: true
        groups:
        - Owner
    superdude24:
        permissions:
            permissions.*:true
        groups:
        - Co-Owner
    303i:
        permissions:
            permissions.*: true
        groups:
        - Co-Owner
    9290:
        permissions:
            permissions.*: true
        groups:
        - Server_Director
groups:
    Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Co-Owner
    Co-Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Server_Director
    Server_Director:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Operator
    Operator:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Architect
    Architect:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Ultra_Builder
    Ultra_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Senior_Builder
    Senior_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Builder
    Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Novice   
    Novice:
        permissions:
        essentials.spawn: true
        inheritance:   
    Beginner:
        permissions:
            permissions.build: false
messages:
    build: '&cYou do not have permission to build here.'
debug: false

It seems to work for all other players, as long as they do not have a full number name...

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby Drakia » January 5th, 2012, 11:55 am

templar63 wrote:Titles do not work for player '9290' on my server. I am guessing that this is a bug in the plugin, but please reply whether it is, or if I made a problem when coding the prefix. Here is the code:
Code: Select all
users:
    templar63:
        permissions:
            permissions.*: true
        groups:
        - Owner
    superdude24:
        permissions:
            permissions.*:true
        groups:
        - Co-Owner
    303i:
        permissions:
            permissions.*: true
        groups:
        - Co-Owner
    9290:
        permissions:
            permissions.*: true
        groups:
        - Server_Director
groups:
    Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Co-Owner
    Co-Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Server_Director
    Server_Director:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Operator
    Operator:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Architect
    Architect:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Ultra_Builder
    Ultra_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Senior_Builder
    Senior_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Builder
    Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Novice   
    Novice:
        permissions:
        essentials.spawn: true
        inheritance:   
    Beginner:
        permissions:
            permissions.build: false
messages:
    build: '&cYou do not have permission to build here.'
debug: false

It seems to work for all other players, as long as they do not have a full number name...

As far as I know this is an issue with the YAML library that Bukkit uses. I will look into a workaround.

Jeyge
 
Posts: 112
Joined: October 28th, 2011, 11:24 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby Jeyge » January 6th, 2012, 12:25 am

Drakia wrote:
templar63 wrote:Titles do not work for player '9290' on my server. I am guessing that this is a bug in the plugin, but please reply whether it is, or if I made a problem when coding the prefix. Here is the code:
Code: Select all
users:
    templar63:
        permissions:
            permissions.*: true
        groups:
        - Owner
    superdude24:
        permissions:
            permissions.*:true
        groups:
        - Co-Owner
    303i:
        permissions:
            permissions.*: true
        groups:
        - Co-Owner
    9290:
        permissions:
            permissions.*: true
        groups:
        - Server_Director
groups:
    Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Co-Owner
    Co-Owner:
        permissions:
            permissions.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Server_Director
    Server_Director:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Operator
    Operator:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Architect
    Architect:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Ultra_Builder
    Ultra_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Senior_Builder
    Senior_Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Builder
    Builder:
        permissions:
            permissions.build: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - Novice   
    Novice:
        permissions:
        essentials.spawn: true
        inheritance:   
    Beginner:
        permissions:
            permissions.build: false
messages:
    build: '&cYou do not have permission to build here.'
debug: false

It seems to work for all other players, as long as they do not have a full number name...

As far as I know this is an issue with the YAML library that Bukkit uses. I will look into a workaround.

With other plugins like Permissions 2.x and 3.x, you would just put the all number user in quotes to fix this type of problem but for all those plugins, there was an error in the console that pointed to the user. I'm not sure if that fix would work here.

lipe123
 
Posts: 8
Joined: January 3rd, 2012, 8:09 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby lipe123 » January 18th, 2012, 2:38 pm

Can someone please test if this is working:
http://dev.bukkit.org/server-mods/coolstorybro/

*edit*
It works fine, if you have essentials installed you need to set the displaynamechange false in the config or something to that effect. just search disaplayname in the config.yml

koopatroopa544
 
Posts: 17
Joined: January 31st, 2012, 11:06 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby koopatroopa544 » January 31st, 2012, 11:14 pm

hi! found a problem with factions and prefixes, and also suffixes (chat colour) when someone joins the game normally the prefixes work absoloutly fine, but when they join or create a faction, their prefix either disappears or joins the prefix in the brackets, which i dont want. and also when i put a colour into suffixes for a player, their colours work fine, but their prefixes just disappear.. i was wondering if you could help me out and tell me why this is happening.
config.yml:

handle-me: true
date-format: HH:mm:ss
message-format: '+prefix +name: +suffix+message'
me-format: '+prefix +name: +suffix+message'
iname-format: '+prefix +name: +suffix+message'

variables.yml:

# iChat Variable Config
# This is now the only method for defining variables
users:
nero600:
prefix: '&d[&4Commando&d]'
suffix: ''
koopatroopa544:
prefix: ''
suffix: ''
Tyler14:
prefix: ''
suffix: '&2'
Britnay:
prefix: ''
suffix: '&9'
groups:
default:
name: Default
prefix: '[&7Default&f]'
suffix: ''
Member:
name: Member
prefix: '[&6Member&f]'
suffix: ''
Potion-Dealer:
name: Potion-Dealer
prefix: '[&2Potion-Dealer&f]'
suffix: ''
LowMod:
name: LowMod
prefix: '[&3LowMod&f]'
suffix: ''
Moderator:
name: Moderator
prefix: '[&bModerator&f]'
suffix: ''
Architect:
name: Architect
prefix: '[&dArchitect&f]'
suffix: ''
VIP:
name: VIP
prefix: '[&aVIP&f]'
suffix: ''
Donator:
name: Donator
prefix: '[&5Donator&f]'
suffix: ''
Admin:
name: Admin
prefix: '[&1Admin&f]'
suffix: ''
Co-Owner:
name: Co-Owner
prefix: '[&eCo-Owner&f]'
suffix: ''
Owner:
name: Owner
prefix: '[&4Owner&f]'
suffix: ''
Commando:
name: Commando
prefix: '&d[&4Commando&d]'
suffix: ''

thank you for your time, - koopatroopa544 :)

koopatroopa544
 
Posts: 17
Joined: January 31st, 2012, 11:06 pm

Re: [CHAT] iChat 2.4.5 - Custom Chat Formatting

Postby koopatroopa544 » January 31st, 2012, 11:16 pm

i'm sorry, the prefix either disappears, or the faction tag actually join the prefix in between the prefix brackets. maybe factions tags are classed as a prefix? o.o ok thanks again - koopa

Next

Return to iChat

Who is online

Users browsing this forum: No registered users