Skip to content
ricochet1k edited this page Feb 28, 2012 · 5 revisions

Syntax: $entity.group.$groupalias

Description: Returns true if the specified entity matches the specified group alias. Currently supported Permissions implementations can be found at the [PermissionsManager enum in ExternalPluginManager.java] (https://github.com/ModDamage/ModDamage/blob/master/src/com/KoryuObihiro/bukkit/ModDamage/ExternalPluginManager.java) in source.

Example:

Damage:
    - 'if attacker.group.elves and target.group.elves'
        - '0'
Damage: #Give admins a defensive buff.
    - 'if target.group.Admins': '-2'
Aliases:
    Group:
        administrative:
            - 'moderator'
            - 'admin'
            - 'owner'
Damage:
    - 'if target.group._administrative and !attacker.group._administrative':
        - 'message.attacker.&7BITCH PLEASE'
        - 'attackereffect.hurt': '+0' # Adds 0 to the event value which is passed to the Calculation
        - '0' # Sets this event value to 0

See also: Hurt, Message, Value Change

Clone this wiki locally