Jump to content

Skript


MillionDollar

Recommended Posts

Some stuff I had lying around.

Commands:

Spoiler

/setspawn
/spawn
/gms
/gmc
/gmsp
/gma
/fly
/vanish
/enderchest
/invsee
/god
/heal
/feed
/clearchat
/mutechat
/ban
/mute
/unban
/unmute
/check
/glow
/backpack - /retrieve
/discord

Permissions:

Spoiler

/setspawn - setspawn.use
/gms - gamemode.survival
/gmsp - gamemode.spectator
/gmc - gamemode.creative
/gma - gamemode.adventure
/fly - fly.use
/vanish - vanish.use (to reveal player to others: vanish.reveal)
/enderchest - enabled for defaults (ec.see for seeing the ender chest of another player)
/invsee - invsee.use
/god - god.use
/heal - heal.use
/feed - feed.use
/clearchat - clearchat.use
/mutechat - mutechat.use (to bypass: chatmute.bypass)
/ban - ban.use (ban.notify)
/unban - unban.use
/mute - mute.use (mute.notify)
/unmute - unmute.use
/check - check.use
/glow - glow.use
/backpack - backpack.give
/retrieve - backpack.retrieve

Punish messages and check message
image.png.1431fd0006b068f4bfbd1f0d60648da6.png
image.png.dfafb1dedb929077511e60e77a17ab1d.png
image.png.9acb26bf5477812a214f185b22372363.png

 

Vroom vroom cmds.sk

MillionDollar, TrillionDollar

BillionDollar please notice me.

 

Screenshot_303.png.cf935223698ddad0326155e211785a33.png

Link to comment
Share on other sites

Hello, its tips and tricks man here! Instead of doing
 

command /gms [<offlineplayer>]:
    permission: gamemode.survival
    permission message: {@no-perm}
    trigger:
        if arg 1 is set:
            set arg 1's gamemode to survival
        else:
            set sender's gamemode to survival

do this:
 

command /gms <player=%player%>:
    permission: gamemode.survival
    permission message: {@no-perm}
    trigger:
        set arg-1's gamemode to survival

and instead of doing this:

loop all players:
	if loop-player has permission "vanish.reveal":
		reveal player from loop-player

do this:

reveal player from all players where [input has permission "vanish.reveal"]

Nice skript, I like how you cited your sources in the comments.

Edited by SuperOrca
  • Like 2

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

23 minutes ago, SuperOrca said:

Hello, its tips and tricks man here! Instead of doing
 



command /gms [<offlineplayer>]:
    permission: gamemode.survival
    permission message: {@no-perm}
    trigger:
        if arg 1 is set:
            set arg 1's gamemode to survival
        else:
            set sender's gamemode to survival

do this:
 



command /gms <player=%player%>:
    permission: gamemode.survival
    permission message: {@no-perm}
    trigger:
        set arg-1's gamemode to survival

and instead of doing this:



loop all players:
	if loop-player has permission "vanish.reveal":
		reveal player from loop-player

do this:



reveal player from all players where [input has permission "vanish.reveal"

Nice skript, I like how you cited your sources in the comments.

Thanks for the tips

Edited by MillionDollar
.

MillionDollar, TrillionDollar

BillionDollar please notice me.

 

Screenshot_303.png.cf935223698ddad0326155e211785a33.png

Link to comment
Share on other sites

Nicely done! Just a tip, but instead of using a variable like {backpacks.open::%player's uuid%} to determine whether or not a player's backpack is open, try using a metadata tag like metadata value "backpacks-open" of player. Metadata tags are much better in a case like this because they do not take up valuable variable space, and are deleted automatically when the server stops, so you don't have to worry about deleting it yourself if the server shuts down unexpectedly. You can also pack an effect and condition into one line, for example:

if {god::%victim's uuid%} is true:
    cancel event

turns into:

cancel event if {god::%victim's uuid%} is true

Also, you don't need to make every single argument in a command optional, so instead of having command /retrieve [<integer>] [<integer>], you can have command /retrieve <integer> <integer>, and then in your code, you wouldn't have to check if each argument is set.

  • Like 1

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

Everyone else here is giving all this great advice and I just really like the color choice.

  • Haha 1

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
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...