Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /create [<text>] [<text>]:
- trigger:
- if {world.%player%} is true:
- send "&6&lMyCreate &r&8» &cYou already have a server named %{nameworld.%player%}%" to player
- else:
- if arg-2 is "end":
- send "&6&lMyCreate &r&8» &7Starting creation of End world '&c%arg-1%&7'. Please wait." to player
- execute console command "mv create %arg-1% end"
- wait 5 seconds
- send "&6&lMyCreate &r&8» &7End world created!" to player
- set {nameworld.%player%} to arg-1
- set {world.%player%} to true
- else if arg-2 is "nether":
- send "&6&lMyCreate &r&8» &7Starting creation of Nether world '&c%arg-1%&7', Please wait." to player
- execute console command "mv create %arg-1% nether"
- wait 5 seconds
- send "&6&lMyCreate &r&8» &7Nether world created, ready to join!" to player
- set {nameworld.%player%} to arg-1
- set {world.%player%} to true
- else if arg-2 is "survival":
- send "&6&lMyCreate &r&8» &7Starting creation of Survival world '&c%arg-1%&7'. Please wait." to player
- execute console command "mv create %arg-1% normal"
- wait 5 seconds
- send "&6&lMyCreate &r&8» &7Survival world created, ready to join!" to player
- set {nameworld.%player%} to arg-1
- set {world.%player%} to true
- else:
- send "&6&lMyCreate &r&8» &cIncorrect Input!" to player
- send "&c-Example /create {name} {survival, end, or nether}" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement