# By RafesquTM # Version: 1.0.0 # Required addons: SKQuery # Tested on: PaperSpigot 1.16.5 on load: send "[SimpleBroadcast] Succesfully Loaded SimpleBroadcast 1.0.0!" to console send "[SimpleBroadcast] SimpleBroadcast Created By RafesquTM!" to console if file "plugins/SimpleBroadcast/Config.yml" doesn't exist: set yaml value "ChatBroadcast_Prefix" from file "plugins/SimpleBroadcast/Config.yml" to "&8[&4&lBroadcast&8]&c " set yaml value "TitleBroadcast_Title" from file "plugins/SimpleBroadcast/Config.yml" to "&4&lAlert" send "[SimpleBroadcast] Files Succesfully Generated!" to console command /broadcast [] []: aliases: bc permission: simplebroadcast.use permission message: &cNo permission! trigger: if arg 2 is set: if arg 1 is "chat" or "title" or "alert": if arg 1 is "chat": set {_cbp} to yaml value "ChatBroadcast_Prefix" from file "plugins/SimpleBroadcast/Config.yml" broadcast "%colored {_cbp}%%colored arg 2%" if arg 1 is "title" or "alert": set {_tbt} to yaml value "TitleBroadcast_Title" from file "plugins/SimpleBroadcast/Config.yml" send title "&4&l%coloured {_tbt}%" with subtitle "&c&l%coloured arg 2%" to all players else: send "&cCorrect usage&8: &4/broadcast chat/title " stop else: send "&cCorrect usage&8: &4/broadcast chat/title "