1c7

PerWorldSpawn

1c7
Oct 29th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. # Per World Spawn | PWS by the VenixMC Plugin Team.
  2. #
  3. # For this plugin: https://venixmc.com/pws/"
  4. #
  5. # For more plugins: https://venixmc.com/plugins/"
  6. #
  7. options:
  8. Version: 1.3
  9. tohub: true
  10. tospawn: true
  11.  
  12. # -- INFORMATION --
  13. #
  14. # Set "tospawn" to "0" to disable //spawn (eg: tospawn: 0) [ABOVE]
  15. #
  16. # Set "tohub" to "0" to disable //hub (eg: tohub: 0) [ABOVE]
  17.  
  18. on join:
  19. if player has the permission "perworldspawn":
  20. set {_versioncheck} to text from "https://pastebin.com/raw/yuXdrnwd"
  21. if {_versioncheck} is not "{@Version}":
  22. send "&e&lWARNING &fYou are using an outdated version of &6PerWorldSpawn&7! Use the newist version: https://pastebin.com/raw/VtDgA0nV"
  23. else:
  24. send "&a&lSUCCESS &7You are using the newist version of &6PerWorldSpawn&7!"
  25.  
  26. command /pws [<text>]:
  27. aliases: perworldspawn
  28. permission: pws.main
  29. trigger:
  30. if arg 1 is not set:
  31. send "&8&l&m-------&6 HELP &8&l&m-------"
  32. send "&e/pws help &7Sends you this help page."
  33. send "&e/pws setworldspawn &7Sets the current worlds spawn."
  34. send "&e/pws sethub &7Sets the main hub."
  35. send "&e/pws info &7Sends you info on the plugin."
  36. send "&8&l&m-------&6 HELP &8&l&m-------"
  37. if arg 1 is "help":
  38. send "&8&l&m-------&6 HELP &8&l&m-------"
  39. send "&e/pws help &7Sends you this help page."
  40. send "&e/pws setworldspawn &7Sets the current worlds spawn."
  41. send "&e/pws sethub &7Sets the main hub."
  42. send "&e/pws info &7Sends you info on the plugin."
  43. send "&8&l&m-------&6 HELP &8&l&m-------"
  44. if arg 1 is "info":
  45. send "&8&l&m-------&6 INFO &8&l&m-------"
  46. send "&eThis plugin was created by the VenixMC Plugins Team."
  47. send "&eTo see more plugins, visit our"
  48. send "&ewebsite @ https://venixmc.com/plugins"
  49. send "&8&l&m-------&6 INFO &8&l&m-------"
  50. if arg 1 is "setworldspawn" or "sws":
  51. set {pws::spawn::%player's world%} to location of player
  52. send "&e&lPWS &fSet the world spawn to &6%location of player%"
  53. if arg 1 is "sethub" or "sh":
  54. set {pws::hub} to location of player
  55. send "&e&lPWS &fSet the hub to &6%location of player%"
  56.  
  57. command //spawn:
  58. trigger:
  59. if {@tospawn} is true:
  60. if {pws::spawn::%player's world%} is set:
  61. teleport the player to {pws::spawn::%player's world%}
  62. send "&e&lPWS &fSending you to the &6worlds spawnpoint&f."
  63. else:
  64. send "&4&lERROR &fThis worlds spawn is not set. Please report this to an admin."
  65. else:
  66. send "&4&lERROR &fThis command has been disabled."
  67.  
  68. command //hub:
  69. trigger:
  70. if {@tohub} is true:
  71. if {pws::hub} is set:
  72. teleport the player to {pws::hub}
  73. send "&e&lPWS &fSending you to the &6server's hubpoint&f."
  74. else:
  75. send "&4&lERROR &fThe server hubpoint is not set. Please report this to an admin."
  76. else:
  77. send "&4&lERROR &fThis command has been disabled."
  78.  
  79. on death:
  80. teleport the player to {pws::hub}
  81.  
  82. # Version Data: https://pastebin.com/yuXdrnwd
  83. # Raw Code: https://pastebin.com/raw/VtDgA0nV
Advertisement
Add Comment
Please, Sign In to add comment