Jump to content

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!

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


-------------------------------------------------------------
[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 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 🙂

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

Link to post
Share on other sites
  • 4 weeks later...
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

 

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

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 post
Share on other sites
  • 8 months later...
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 post
Share on other sites
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

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...