ilyLuna Posted March 8 Share Posted March 8 (edited) # Made by KayCle777 command /report <offlineplayer> <text>: cooldown: 1 second cooldown message: &cThis command is still in cooldown! Please wait! trigger: if length of "%arg-2%" is more than 50: message "&cMax length for reason is 50 character(s) / Letters!" else: add book named "&C%arg-1%" with lore " &a❙ &A%player% &fhas reported &C%arg-1%" and "&a ❙ &fReason: &c%arg-2%" and " &C❙ &fRight Click to delete!" to {reportlist::*} message "&aYou have succesfully reported &C%arg-1%&a!" function reportlist(p: player): open chest inventory with 5 rows named "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ" to {_P} set slot 0,1,2,3,4,5,6,7,8,36,37,38,39,40,41,42,43,44,45 of {_p}'s current inventory to gray stained glass pane named "&7" set {var} to 8 loop {reportlist::*}: add 1 to {var} set slot {var} of {_p}'s current inventory to loop-value command /reportlist: permission: op trigger: reportlist(player) command /resetreport: permission: op trigger: delete {reportlist::*} message "&cYou have cleared Reports!" on inventory click: if name of event-inventory is "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ": cancel event on inventory click: if name of event-inventory is "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ": if event-item is book: if "%click type%" contains "RIGHT": message "&ASuccesfully deleted the report of %name of event-slot%!" remove event-slot from {reportlist::*} close player's inventory reportlist(player) 4 minutes ago, KayCle777 said: # Made by KayCle777 command /report <offlineplayer> <text>: cooldown: 1 second cooldown message: &cThis command is still in cooldown! Please wait! trigger: if length of "%arg-2%" is more than 50: message "&cMax length for reason is 50 character(s) / Letters!" else: add book named "&C%arg-1%" with lore " &a❙ &A%player% &fhas reported &C%arg-1%" and "&a ❙ &fReason: &c%arg-2%" and " &C❙ &fRight Click to delete!" to {reportlist::*} message "&aYou have succesfully reported &C%arg-1%&a!" function reportlist(p: player): open chest inventory with 5 rows named "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ" to {_P} set slot 0,1,2,3,4,5,6,7,8,36,37,38,39,40,41,42,43,44,45 of {_p}'s current inventory to gray stained glass pane named "&7" set {var} to 8 loop {reportlist::*}: add 1 to {var} set slot {var} of {_p}'s current inventory to loop-value command /reportlist: permission: op trigger: reportlist(player) command /resetreport: permission: op trigger: delete {reportlist::*} message "&cYou have cleared Reports!" on inventory click: if name of event-inventory is "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ": cancel event on inventory click: if name of event-inventory is "&c&lRᴇᴘᴏʀᴛ Lɪsᴛ": if event-item is book: if "%click type%" contains "RIGHT": message "&ASuccesfully deleted the report of %name of event-slot%!" remove event-slot from {reportlist::*} close player's inventory reportlist(player) Edited March 8 by KayCle777 Link to comment Share on other sites More sharing options...
ilyLuna Posted March 8 Author Share Posted March 8 4 minutes ago, KayCle777 said: Enjoy! 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