Jump to content
KngdomsGG

/report Skript

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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


Support Lead
Senior Moderator
-------------------------------------------------------------
[VIP] - 2018/2019

[JR.MOD] - 28th April 2019
[SR.MOD] - 21st June 2019

-------------------------------------------------------------

Discord - Criticyl#8674

In-game Name - Criticyl

Share this post


Link to post
Share on other sites

Cool


Website Developer - Graphic Designer - Skript Developer - Professional Builder

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I develop pretty static websites when I'm bored. 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 🙂

Share this post


Link to post
Share on other sites

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 by ThatOneTqnk

7crnh89.png

OO8mIVD.png

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites
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 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Share this post


Link to post
Share on other sites
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


  • Been "Skripting" for half a year now
  • Whale type 
  • Doesn't like Idle Servers (But made one)
  • Doesn't like Mining-PvP servers (But made one)
  • Likes MrScopes lol

 

I make original memes about minehut too.

Capture.png.5a3e6c2c283f3e0ee17860d8704f25f6.png

 

  • Discord Swayl#4299
  • MC IGN - Swayl

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...