Xarber Posted February 27, 2021 Share Posted February 27, 2021 I have done a script for /report and /reports (/reports dont work, but should type in chat a list with all the reports) but it didn't work, please can u help me? SCRIPT: variables: {2reports} = %{reports}% command /report [<player>] [<text>]: trigger: if arg-2 is not set: send "&7Usage: &c/report [player] [reason]" to player send "&a&6/report duckbeary fly" to player else if arg-1 is not set: send "&7Usage: &c/report [player] [reason]" to player send "&a&6/report duckbeary fly" to player else: set {reports} to "%{2reports}%" and "Reported Player: &6&l%arg-1% &rReason: &6&l%arg-2% &rReported by: &6&l%player%" broadcast "&c&lREPORT!" and "&6%player% &7reported &6%arg-1%" and "&7Reason: &6%arg-2%" command /reports: permission: op trigger: send "REPORTS:" and "%{reports}%" to player command /clearreports: trigger: reset {reports} Link to comment Share on other sites More sharing options...
_omga Posted February 27, 2021 Share Posted February 27, 2021 Hey there, {reports} is a single value. It can't be more than 1 value. Instead, try using list variables such as {reports::*} If I helped you at all, leave a like! IGN: _omga Discord: omega#1000 Link to comment Share on other sites More sharing options...
Xarber Posted February 27, 2021 Author Share Posted February 27, 2021 (edited) There is a method to replace the "and" on the list? (It says: REPORTS: Xarber has been reported from Xarber for Test and Xarber has been reported from Xarber for Test2) Edited February 27, 2021 by Xarber Tested the script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now