Jump to content

Recommended Posts

command /setspawn:
    aliases: spawnset, sethub, hubset, setlobby, lobbyset
    permission: spawn.setspawn
    permission message: &cSorry, but you don't have permission to execute this command!
    description: Set spawn at your location.
    trigger:
        message "&6You have &cset spawn&6 at your location!"
        set {spawn} to location of player

command /spawn [<player>]:
    aliases: hub, lobby
    permission: spawn.spawn
    permission message: &cSorry, but you don't have permission to execute this command!
    description: Teleport you to spawn.
    trigger:
        if {spawn} isn't set:
            message "&4Error:&c spawn is not set!"
            stop
        else:
            argument 1 is not set:
                teleport player to {spawn}
                message "&6Teleporting..."
            else:
                if sender has permission "spawn.spawn.others":
                    if argument is online:
                        teleport argument to {spawn}
                    if sender is a player:
                        message "&6You have been teleported to spawn by &c%player%&6." to argument 1
                    if sender is not a player:
                        message "&6You have been teleported to spawn by &cConsole&6." to argument 1
                        teleport player to {spawn}
                else:
                    message "&cSorry, but you don't have permission to execute this command!"

Link to post
Share on other sites

Nice skript!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to post
Share on other sites
  • 2 weeks later...
On 4/18/2021 at 6:21 AM, Wimfish said:

command /setspawn:
    aliases: spawnset, sethub, hubset, setlobby, lobbyset
    permission: spawn.setspawn
    permission message: &cSorry, but you don't have permission to execute this command!
    description: Set spawn at your location.
    trigger:
        message "&6You have &cset spawn&6 at your location!"
        set {spawn} to location of player

command /spawn [<player>]:
    aliases: hub, lobby
    permission: spawn.spawn
    permission message: &cSorry, but you don't have permission to execute this command!
    description: Teleport you to spawn.
    trigger:
        if {spawn} isn't set:
            message "&4Error:&c spawn is not set!"
            stop
        else:
            argument 1 is not set:
                teleport player to {spawn}
                message "&6Teleporting..."
            else:
                if sender has permission "spawn.spawn.others":
                    if argument is online:
                        teleport argument to {spawn}
                    if sender is a player:
                        message "&6You have been teleported to spawn by &c%player%&6." to argument 1
                    if sender is not a player:
                        message "&6You have been teleported to spawn by &cConsole&6." to argument 1
                        teleport player to {spawn}
                else:
                    message "&cSorry, but you don't have permission to execute this command!"

the aliases are kinda useless since minehut's /hub and /lobby override anything.

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