Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Per World Spawn | PWS by the VenixMC Plugin Team.
- #
- # For this plugin: https://venixmc.com/pws/"
- #
- # For more plugins: https://venixmc.com/plugins/"
- #
- options:
- Version: 1.3
- tohub: true
- tospawn: true
- # -- INFORMATION --
- #
- # Set "tospawn" to "0" to disable //spawn (eg: tospawn: 0) [ABOVE]
- #
- # Set "tohub" to "0" to disable //hub (eg: tohub: 0) [ABOVE]
- on join:
- if player has the permission "perworldspawn":
- set {_versioncheck} to text from "https://pastebin.com/raw/yuXdrnwd"
- if {_versioncheck} is not "{@Version}":
- send "&e&lWARNING &fYou are using an outdated version of &6PerWorldSpawn&7! Use the newist version: https://pastebin.com/raw/VtDgA0nV"
- else:
- send "&a&lSUCCESS &7You are using the newist version of &6PerWorldSpawn&7!"
- command /pws [<text>]:
- aliases: perworldspawn
- permission: pws.main
- trigger:
- if arg 1 is not set:
- send "&8&l&m-------&6 HELP &8&l&m-------"
- send "&e/pws help &7Sends you this help page."
- send "&e/pws setworldspawn &7Sets the current worlds spawn."
- send "&e/pws sethub &7Sets the main hub."
- send "&e/pws info &7Sends you info on the plugin."
- send "&8&l&m-------&6 HELP &8&l&m-------"
- if arg 1 is "help":
- send "&8&l&m-------&6 HELP &8&l&m-------"
- send "&e/pws help &7Sends you this help page."
- send "&e/pws setworldspawn &7Sets the current worlds spawn."
- send "&e/pws sethub &7Sets the main hub."
- send "&e/pws info &7Sends you info on the plugin."
- send "&8&l&m-------&6 HELP &8&l&m-------"
- if arg 1 is "info":
- send "&8&l&m-------&6 INFO &8&l&m-------"
- send "&eThis plugin was created by the VenixMC Plugins Team."
- send "&eTo see more plugins, visit our"
- send "&ewebsite @ https://venixmc.com/plugins"
- send "&8&l&m-------&6 INFO &8&l&m-------"
- if arg 1 is "setworldspawn" or "sws":
- set {pws::spawn::%player's world%} to location of player
- send "&e&lPWS &fSet the world spawn to &6%location of player%"
- if arg 1 is "sethub" or "sh":
- set {pws::hub} to location of player
- send "&e&lPWS &fSet the hub to &6%location of player%"
- command //spawn:
- trigger:
- if {@tospawn} is true:
- if {pws::spawn::%player's world%} is set:
- teleport the player to {pws::spawn::%player's world%}
- send "&e&lPWS &fSending you to the &6worlds spawnpoint&f."
- else:
- send "&4&lERROR &fThis worlds spawn is not set. Please report this to an admin."
- else:
- send "&4&lERROR &fThis command has been disabled."
- command //hub:
- trigger:
- if {@tohub} is true:
- if {pws::hub} is set:
- teleport the player to {pws::hub}
- send "&e&lPWS &fSending you to the &6server's hubpoint&f."
- else:
- send "&4&lERROR &fThe server hubpoint is not set. Please report this to an admin."
- else:
- send "&4&lERROR &fThis command has been disabled."
- on death:
- teleport the player to {pws::hub}
- # Version Data: https://pastebin.com/yuXdrnwd
- # Raw Code: https://pastebin.com/raw/VtDgA0nV
Advertisement
Add Comment
Please, Sign In to add comment