Paste #30160: Repo Script ThornChat

Date: 2016/02/11 15:01:52 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


# Created by Mwthorn
# 11-02-2016
# 
# This scripts is basically used along with my other scripts, 
# it may not work if the other scripts are not installed
# 
# Current Script Supports:
# - Teams (By Mwthorn)

Chat_Events:
    type: world
    debug: false
    events:
        on player chats:
        - if <player.has_flag[Teams_Player_Menu_Respond]> {
            - determine cancelled passively
            - execute as_player "team <player.flag[Teams_Player_Menu_Respond]> <context.message>"
            - queue clear
            - flag player Teams_Player_Menu_Respond:!
        }
        - if <player.has_flag[Teams_Player_Group]> {
            - determine "FORMAT:Chat_F_InTeam_<server.flag[Teams_Group_<player.flag[Teams_Player_Group]>_Rank]>"
        }
        - determine "FORMAT:Chat_F_Normal" 

Chat_F_Normal:
    type: format
    format: "<player.name.display> <&8> <&r><text>"

Chat_F_InTeam_1:
    type: format
    format: "<&7><player.flag[Teams_Player_Group]> <&r><player.name.display> <&r><text>"