Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &6Mines&8:&7
- on quit:
- delete {mine.user.%uuid of player%.isConfirmingMine}
- command /mine [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: /mines
- trigger:
- if executor is not a player:
- send "{@prefix} This command can only be executed by a player."
- else if arg-1 is "create":
- if arg-2 is not set:
- send "{@prefix} Invalid Usage! &e/mine create <id> <length> <depth> <width>&7."
- else if {mine.list::*} contains arg-2 in lower case:
- send "{@prefix} A mine with the id &e%arg-2 in lower case% &7already exists."
- else if isNotANumber(arg-3), isNotANumber(arg-4) or isNotANumber(arg-5) is false:
- stop
- else:
- # Make the user confirm creating this mine.
- else if arg-1 is "delete":
- # Delete a mine
- else if arg-1 is "confirm":
- if {mine.user.%uuid of player%.isConfirmingMine} is not true:
- send "{@prefix} Invalid Usage! &e/mine <create | delete> <id> <length> <depth> <width>&7."
- else:
- # Confirm creating a mine
- else:
- send "{@prefix} Invalid Usage! &e/mine <create | delete> <id> <length> <depth> <width>&7."
- function isNotANumber(input: String) :: Boolean:
- # Send an error-msg, and send all previous placed numbers
- return false
Advertisement
Add Comment
Please, Sign In to add comment