thanks but still have an isseu with /msg
if arg-1 is set:
if {ignore::%uuid of player%::*} is sender:
stop
else:
if arg-2 is set:
set {message.%player%} to arg 1
set {message.%arg 1%} to player
send "&bFrom: &a%player%&r &7> &6%arg 2%" to arg 1
send "&bTo: &a%arg 1%&r &7> &6%arg 2%" to player
[doublepost=1565826435,1565824834][/doublepost]this doesn't work of course:
if arg-1 is set:
loop recipients:
if {ignore::%loop-player's uuid%::*} is sender:
remove loop-player from recipients
[doublepost=1565827151][/doublepost]
Mostly pseudo code, but should work. Fix the errors if any.
code_language.skript:
options:
ERROR_MESSAGE = &c[ M.A.L.I.A ] - An error occurred while trying to execute the command.
on load:
if file "plugins/Malia/chat/config.yml" doesn't exist:
create file "plugins/Malia/chat/config.yml"
on join:
if file "plugins/Malia/chat/players/%player's uuid%.yml" doesn't exist:
create file "plugins/Malia/chat/players/%player's uuid%.yml"
command /uuid [<offline player>]:
trigger:
if arg-1 is not set:
send "%{@ERROR_MESSAGE}% &7&o(Usage: /uuid <player>)" to player
stop
send "&a%arg-1%'s UUID: &7%arg-1's uuid%"
command /ignore [<offline player>]:
trigger:
if arg-1 is not set:
send "%{@ERROR_MESSAGE}% &7&o(Usage: /ignore <player>)" to player
stop
add "%arg-1's uuid%" to {LIST::IGNORED::%player%::*}
set yml value "%arg-1's uuid%" in "plugins/Malia/chat/players/%player's uuid%.yml" to true
on chat:
loop all players:
loop {LIST::IGNORED::%loop-player%::*}:
if {LIST::IGNORED::%loop-player%::*} contains %loop-index's uuid%:
cancel event
TODO: Load ignored people from the file
Edit:
On your code, you're missing intendation, anyways isn't this line the issue?
code_language.skript:
if {ignore::%loop-player's uuid%::*} is player:
Try with "
is sender"
i tried it but got many errors probbaly need an addod but dont know what for addon
[23:58:18 ERROR]: [Skript] 'ERROR_MESSAGE = &c[ M.A.L.I.A ] - An error occurred while trying to execute the command.' is not an entry (like 'name : value') (chat2.sk, line 2: ERROR_MESSAGE = &c[ M.A.L.I.A ] - An error occurred while trying to execute the command.')
[23:58:18 ERROR]: [Skript] can't understand this condition: 'file "plugins/Malia/chat/config.yml" doesn't exist' (chat2.sk, line 5: if file "plugins/Malia/chat/config.yml" doesn't exist:')
[23:58:18 ERROR]: [Skript] can't understand this condition: 'file "plugins/Malia/chat/players/%player's uuid%.yml" doesn't exist' (chat2.sk, line 9: if file "plugins/Malia/chat/players/%player's uuid%.yml" doesn't exist:')
[23:58:18 ERROR]: [Skript] undefined option {@ERROR_MESSAGE} (chat2.sk, line 15: send "%{@ERROR_MESSAGE}% &7&o(Usage: /uuid <player>)" to player')
[23:58:18 ERROR]: [Skript] undefined option {@ERROR_MESSAGE} (chat2.sk, line 22: send "%{@ERROR_MESSAGE}% &7&o(Usage: /ignore <player>)" to player')
[23:58:18 WARN]: [Skript] the UUID of the 1st argument is already a text, so you should not put it in one (e.g. the UUID of the 1st argument instead of "%the UUID of the 1st argument%") (chat2.sk, line 24: add "%arg-1's uuid%" to {LIST::IGNORED::%player%::*}')
[23:58:18 ERROR]: [Skript] Can't understand this condition/effect: set yml value "%arg-1's uuid%" in "plugins/Malia/chat/players/%player's uuid%.yml" to true (chat2.sk, line 25: set yml value "%arg-1's uuid%" in "plugins/Malia/chat/players/%player's uuid%.yml" to true')
[23:58:18 ERROR]: [Skript] can't understand this condition: '{LIST::IGNORED::%loop-player%::*} contains %loop-index's uuid%' (chat2.sk, line 30: if {LIST::IGNORED::%loop-player%::*} contains %loop-index's uuid%:')