Sueta
WO

World Setup Command

1.0

Created a new world and want to set it up with default gamerules or worldguard settings? Try this!

·Plugin

Creating worlds left and right but hate setting them up one by one?
Get this Skript and run (essentially) macros that set your world up with all the necessary settings! (Define your own in the Skript code)

Commands & Permissions
/wsetup - Shows help menu. Permission: skript.wsetup (You can change this permission in the Skript file)
/wsetup-normal - Runs the setup sequence called "Normal". Permission: skript.wsetup (You can change this permission in the Skript file)
You can add your own setup sequences with custom commands or whatever you want!

# World Setup command by Matthew1551

command /wsetup:
# Permission to allow usage of /wsetup
    permission: skript.wsetup
    permission message: &cYou don't have permission to do that command!
    trigger:
        message "&b====================" to player
        message "&cAutomated World Setup &7Version 1.0" to player
        message "&6Setup sequences available:" to player
        message "&r" to player
        message "&eSTANDARD &7- &c/wsetup-normal" to player
##### Uncomment the following line to show another setup option. Must be configured below. See instructions at the bottom of this Skript.
#       message "&4[INSERT NAME HERE] &7- &c/wsetup-[insert here]" to player
        message "&r" to player
        message "&b====================" to player

command /wsetup-normal:
# Permission to allow usage of /wsetup-normal
    permission: skript.wsetup.normal
# Message to output to player when they do not have the correct permission
    permission message: &cYou don't have permission to do that command!
    trigger:
        message "&7Starting &eNORMAL &7world setup sequence..." to player
        wait 20 ticks
#### You can add and subtract commands by using the following format:
# [command]
# message "(Short description of what has run)" to player
# wait 10 ticks
        execute command "mvm set monsters false %world%" # Tells MultiVerse-Core to disable monsters in world: %world%.
        message "&bMV Monsters False" to player
        wait 10 ticks
        #
        execute command "mvm set animals false %world%" # Tells MultiVerse-Core to disable all animals in world: %world%.
        message "&bMV Animals False" to player
        #
        execute command "mvm set mode adventure %world%" # Tells MultiVerse-Core to set the default gamemode to adventure in world: %world%.
        message "&bMV Mode Adventure" to player
        #
        wait 10 ticks
        execute command "gamerule doDaylightCycle false" # Disables daylight cycle.
        message "&fDaylightCycle False" to player
        #
        wait 10 ticks
        execute command "gamerule doWeatherCycle false" # Disables weather cycle.
        message "&fWeatherCycle False" to player
        #
        wait 10 ticks
        execute command "time set 6000 %world%" # Changes the time to 12:00 pm noon in-game.
        message "&6Time set 6000" to player
        #
        wait 10 ticks
        execute command "region flag __global__ invincible -w %world% allow" # Makes all players so they cannot take damage. Uses WorldGuard
        message "&cRG invincible allow" to player
        #
        wait 10 ticks
        execute command "region flag __global__ pvp -w %world% deny" # Makes all players so they cannot PVP.
        message "&cRG pvp deny" to player
        #
        wait 10 ticks
        execute command "region flag __global__ item-drop -w %world% deny" # Make it so you cannot drop items.
        message "&cRG invincible allow" to player
        #
        wait 10 ticks
        execute command "region flag __global__ enderpearl -w %world% deny" # Makes it so you cannot enderpearl
        message "&cRG enderpearl deny" to player
        #
        wait 10 ticks
        execute command "region flag __global__ interact -w %world% allow" # Makes it so you can interact with buttons, signs, etc.
        message "&cRG interact allow" to player
        #
        wait 10 ticks
        execute command "region flag __global__ entity-item-frame-destroy -w %world% deny" # Makes it so entities cannot destroy item frames.
        message "&cRG entity-item-frame-destroy deny" to player
        #
        wait 10 ticks
        execute command "region flag __global__ entity-painting-destroy -w %world% deny" # Makes it so entities cannot destroy paintings/
        message "&cRG entity-item-frame-destroy deny" to player
        #
        wait 10 ticks
        execute command "region flag __global__ mob-spawning -w %world% deny" # Makes it so mobs cannot spawn. This is mainly redundant to the Multiverse commands listed above.
        message "&cRG mob-spawning deny" to player
        #
        message "&b---&aWorld successfully setup!&b---" to player
        # Sequence is complete

###############################################################
#  Uncomment all the lines below to add a new setup command.  #
#  Make sure you add it to the help menu at the top of this   #
#  Skript.                                                    #
###############################################################

# command /wsetup-[insert name]:
#    permission: skript.wsetup.[insert name for permission]
#    permission message: &cYou don't have permission to do that command!
#    trigger:
#        message "&7Starting &e[INSERT NAME] &7world setup sequence..." to player
#        wait 20 ticks
#        #
#        command
#        message "text" to player
#        wait 10 ticks


#### REMEMBER, you can add and subtract commands by using the following format: ####
# [command]
# message "(Short description of what has run)" to player
# wait 10 ticks

Similar projects

Plugin →