KngdomsGG Posted November 25, 2019 Share Posted November 25, 2019 Another Release but smaller now 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: loop all players: if loop-player has permission "skript.reports": send "&c&lREPORT!" to loop-player send "&6%player% &7reported &6%arg-1%" to loop-player send "&7Reason: &6%arg-2%" to loop-player or https://pastebin.com/raw/SsNLnETC Make sure to credit me! Link to comment Share on other sites More sharing options...
Stargazers Posted November 26, 2019 Share Posted November 26, 2019 Instead of looping (which may cause lag) you can use: send "msg" to all players where [input has the permission "perm"] 1 [VIP] 2019 [JR.MOD] 10/29/2019 [MOD] 12/30/2019 Link to comment Share on other sites More sharing options...
Criticyl Posted November 26, 2019 Share Posted November 26, 2019 1 hour ago, Star said: Instead of looping (which may cause lag) you can use: send "msg" to all players where [input has the permission "perm"] +1 -------------------------------------------------------------[VIP] - 2018/2019 [JR.MOD] - 28th April 2019[SR.MOD] - 21st June 2019 [LEGEND] - 28th July 2020 (Resigned) ------------------------------------------------------------- Discord - Criticyl#0002 IGN - Criticyl Link to comment Share on other sites More sharing options...
TheRustySpud Posted November 27, 2019 Share Posted November 27, 2019 18 hours ago, Criticyl said: +1 +1 ↪ JR.MOD August 1st, 2019 ↪ Reports & Appeals Team Lead ↩ ↪ MOD October 1st, 2019 ↪ SR.MOD August 11th, 2020 Link to comment Share on other sites More sharing options...
noobie Posted November 28, 2019 Share Posted November 28, 2019 nice job. don't use "loop all players" tho, it could cause lag noobie professional tea drinker & space explorer ---------- Link to comment Share on other sites More sharing options...
farwl Posted November 28, 2019 Share Posted November 28, 2019 Cool Graphic Designer - Skript Developer - Professional Builder - Content Creator Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere Amethyst Studios Discord Link to comment Share on other sites More sharing options...
ThatOneTqnk Posted December 3, 2019 Share Posted December 3, 2019 (edited) Looking at the source, the 'where' filter loops anyway, it just is not evident to the Skripter. https://github.com/SkriptLang/Skript/blob/ec1e8d88bcd28f65c5a7613f63c0812332072256/src/main/java/ch/njol/skript/expressions/ExprFilter.java#L89-L109 So there shouldn't be a difference in performance actually. You have to iterate, a server cannot do multiple operations at once. Edited December 3, 2019 by ThatOneTqnk Link to comment Share on other sites More sharing options...
pptjes Posted December 30, 2019 Share Posted December 30, 2019 (edited) ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT ACCOUNT HACKED: https://youtube.com/ShadowSparkYT Edited March 22, 2020 by pptjes Link to comment Share on other sites More sharing options...
zKoro Posted January 4, 2020 Share Posted January 4, 2020 On 12/30/2019 at 12:57 PM, pptjes said: how do i see the reports In the Skript, the reports aren't logged meaning that you cannot see previously made reports ⮞ Junior Mod (01/04/2020) - Resigned ⮜ ⮞ Discord » Koronotchi#0001 ⮜⮞ Minecraft Username » Koronotchi ⮜ Link to comment Share on other sites More sharing options...
Swayl Posted January 5, 2020 Share Posted January 5, 2020 On 12/30/2019 at 8:57 PM, pptjes said: how do i see the reports If you want to see the previous reports, use this report system Things to know about me • I have 2 years of skript experience • I work on my servers all by myself• I like being alone • I have insane trust issues • I simp for alot of people (trying my best not to) • My mental age is somewhere 8 • I dont like meeting new people • Very toxic Discord - Swayl#0099 MC IGN - Swayl (I suggest avoiding me because I get too attached to people quick) Link to comment Share on other sites More sharing options...
hacendj Posted September 5, 2020 Share Posted September 5, 2020 On 11/25/2019 at 9:19 PM, KngdomsGG said: Another Release but smaller now 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: loop all players: if loop-player has permission "skript.reports": send "&c&lREPORT!" to loop-player send "&6%player% &7reported &6%arg-1%" to loop-player send "&7Reason: &6%arg-2%" to loop-player or https://pastebin.com/raw/SsNLnETC Make sure to credit me! suck Link to comment Share on other sites More sharing options...
UntitledGoose Posted September 11, 2020 Share Posted September 11, 2020 On 12/2/2019 at 11:41 PM, ThatOneTqnk said: Looking at the source, the 'where' filter loops anyway, it just is not evident to the Skripter. https://github.com/SkriptLang/Skript/blob/ec1e8d88bcd28f65c5a7613f63c0812332072256/src/main/java/ch/njol/skript/expressions/ExprFilter.java#L89-L109 So there shouldn't be a difference in performance actually. You have to iterate, a server cannot do multiple operations at once. this is true but it does decrease parsing time (ever so slightly, that doesn't really matter) and it's more organized, organized as in fewer lines VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 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