#SkChatFormat - Made by Torin_ on script load: if existence of "plugins/SkChatFormat/config.yml" is false: delete {SKCF::config::*} create file "plugins/SkChatFormat/config.yml" if {SKCFO::enabled} is not set: set yaml value "Enabled" from "../../SkChatFormat/config.yml" to true if {SKCFO::permission} is not set: set yaml value "PermissionPrefix" from "../../SkChatFormat/config.yml" to "skcf" if {SKCF::default} is not set: set yaml value "chat.formats.default" from "../../SkChatFormat/config.yml" to "&8[&7Default&8] &7[displayname] &7> [message]" set {SKCF::*} to yaml nodes "chat.formats" from file "../../SkChatFormat/config.yml" set {SKCFO::permission} to yaml value "PermissionPrefix" from "../../SkChatFormat/config.yml" set {SKCFO::enabled} to yaml value "Enabled" from "../../SkChatFormat/config.yml" on chat: {SKCFO::enabled} is true loop {SKCF::*}: player has permission "%{SKCFO::permission}%.%loop-index%" cancel event set {_cf} to yaml value "chat.formats.%loop-value%" from file "../../SkChatFormat/config.yml" replace all "[message]" with "%message%" in {_cf} replace all "[player]" with "%player%" in {_cf} replace all "[displayname]" with "%player's display name%" in {_cf} broadcast "%{_cf}%" stop loop