Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
# _______ __ __ _______ _______ ______ __ __ _______ _______
# | || | | || || || _ | | |_| || || |
# | _____|| | | || _ || ___|| | || | || _____|| ___|
# | |_____ | |_| || |_| || |___ | |_||_ | || |_____ | | __
# |_____ || || ___|| ___|| __ || ||_____ || || |
# _____| || || | | |___ | | | || ||_|| | _____| || |_| |
# |_______||_______||___| |_______||___| |_||_| |_||_______||_______|
#
# VERSION 1.0
# Created by Slaim36
#
# ______________________
# | Configurable options |
# |______________________|
options:
#MESSAGES WHEN MSG IS SENT
onSendMSG: "&7[&e\playersender&a->&e\playerreceiver&7] &f\message"
onReceiveMSG: "&7[&e\playersender&a->&e\playerreceiver&7] &f\message"
socialSpyMSG: "&7[&e\playersender&a->&e\playerreceiver&7] &f\message"
#MESSAGES WHEN MSG COULD NOT BE SENT
playerOffline: "&c&l\playerreceiver&c is offline."
msgDisabled: "&c&l\playerreceiver&c has MSGs disabled."
#MESSAGES ON TOGGLE THINGS
onDisableMSGs: "&cMSGs disabled"
onEnableMSGs: "&aMSGs enabled"
onDisableSocialSpy: "&cSocialSpy disabled"
onEnableSocialSpy: "&aSocialSpy enabled"
#
#
# _____________________
# | Code (DON'T MODIFY) |
# |_____________________|
command /msg <offline player> <string>:
trigger:
if arg-1 is offline:
set {_Offline::*} to {@playerOffline}
replace all "\playerreceiver" in {_Offline::*} with arg-1's name
send {_Offline::*}
if {SuperMSG::%arg-1%::MSGEnabled} is false:
set {_MSGDisabled::*} to {@msgDisabled}
replace all "\playerreceiver" in {_MSGDisabled::*} with arg-1's name
send {_MSGDisabled::*}
else:
set {_onSend::*} to {@onSendMSG}
set {_onReceive::*} to {@onReceiveMSG}
replace all "\playersender" in {_onSend::*} with player's name
replace all "\playerreceiver" in {_onSend::*} with arg-1's name
replace all "\message" in {_onSend::*} with arg-2
replace all "\playersender" in {_onReceive::*} with player's name
replace all "\playerreceiver" in {_onReceive::*} with arg-1's name
replace all "\message" in {_onReceive::*} with arg-2
send {_onSend::*} to player
send {_onReceive::*} to arg-1
loop all players:
if {SuperMSG::%loop-player%::SocialSpy} is true:
set {_SocialSpy::*} to {@socialSpyMSG}
replace all "\playersender" in {_SocialSpy::*} with player's name
replace all "\playerreceiver" in {_SocialSpy::*} with arg-1's name
replace all "\message" in {_SocialSpy::*} with arg-2
send {_SocialSpy::*} to loop-player
command /msgtoggle:
trigger:
if {SuperMSG::%player%::MSGEnabled} is false:
set {SuperMSG::%player%::MSGEnabled} to true
send {@onEnableMSGs} to player
else:
set {SuperMSG::%player%::MSGEnabled} to false
send {@onDisableMSGs} to player
command /socialspy:
permission: supermsg.socialspy
trigger:
if {SuperMSG::%player%::SocialSpy} is true:
set {SuperMSG::%player%::SocialSpy} to false
send {@onDisableSocialSpy} to player
else:
set {SuperMSG::%player%::SocialSpy} to true
send {@onEnableSocialSpy} to player