New Type
minecraftakcz360 opened this issue ยท 5 comments
Suggestion
can you add something like player & offline player but it will never return none
Why?
why? because i was making command that have player in arguments and when you type the name wrong it will send you error to chat, i want to make custom message by checking if the player is online and if not then sending something like: you typed the players name wrong try checking the players name again.
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this suggestion.
you can use a string argument and then parse it as a player (for example, arg-1 parsed as a player
), the parse expression will return none if parsing fails, and the parsed value if successful.
you can use a string argument and then parse it as a player (for example,
arg-1 parsed as a player
), the parse expression will return none if parsing fails, and the parsed value if successful.
but then the tab completion will not be there :(
skript does need tab completion support, but we've already got an issue for that (#3894)
you can use a string argument and then parse it as a player (for example,
arg-1 parsed as a player
), the parse expression will return none if parsing fails, and the parsed value if successful.
or add something to the command function that will customize the tab completion
like
command /hi: <string>
completion: playerlist _--this will show all players online on the completion_
trigger:
send "hi" to arg-1 parsed as a player
command /warp: <string>
completion: "earth", "moon", "spawn", "land" _--this will show earth, moon, spawn and land on the completion_
you can use a string argument and then parse it as a player (for example,
arg-1 parsed as a player
), the parse expression will return none if parsing fails, and the parsed value if successful.or add something to the command function that will customize the tab completion
like command /hi: completion: playerlist --this will show all players online on the completion trigger: send "hi" to arg-1 parsed as a player
command /warp: completion: "earth", "moon", "spawn", "land" --this will show earth, moon, spawn and land on the completion
or maka it more specific like
command /give <string> <string>:
arg-1 completion = playerlist
arg-2 completion = itemlist