Jump to content

plugin (with skript) - Getting started


Recommended Posts

I wanted to make a plugin, So i made a plugin, You need the plugin skript go to /plugins/Skript/scripts 
Delete every file you see that you can, Then make a file called "gettingStarted.sk" and copy and paste everything below this in it, (Not the #'s)
dont copy and paste this
the commands -
/sethome 
/home
/day - sets it to day
/night - sets it to night
/bloodmoon - sets to midnight and gives 3 mins of strength
/impance - makes an announcement
/broadcast - makes a broadcast


command /sethome:
    trigger:
        set {home.%uuid of player%} to location of block at location of player
        send "set home to: %{home.%uuid of player%}%" to player

command /home:
    trigger:
        teleport player to {home.%uuid of player%} 
        send "§4The blood provails." to player #You can change this

command /day:
    permission: gettingstarted.day #If you have power ranks do /pr addperm (rank) gettingstarted.day and they should be able to do this.
    trigger:
        execute console command "time set day" 

command /night:
    permission: gettingstarted.night #If you have power ranks do /pr addperm (rank) gettingstarted.night and they should be able to do this.
    trigger:
        execute console command "time set night" 

command /bloodmoon:
    permission: gettingstarted.bm
    trigger:
        execute console command "time set midnight"
        execute console command "effect give @r minecraft:strength 180" #You can change the number to make it last longer or shorter

command /broadcast [<text>]:
    permission: op
    usage: &cCorrect usage: /broadcast [message] 
    trigger:
        broadcast " "
        broadcast "§aBroadcast§6: %arg-1%"
 

command /impAnce [<text>]:
    permission: op
    usage: &cCorrect usage: /impAnce [message]
    trigger:
        broadcast " "
        broadcast "§4IMPORTANT ANNOUNCEMENT§6: %arg-1%"

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...