capture_runas(~console, '/runalias /myalias myargument')
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-3108 - Reported by Hazae41
Using build 2966 on Spigot 1.8.8
- capture_runas(~console, '/runalias /myalias myargument') -> the alias "/myalias myargument" is not executed
- capture_runas(PlayerA, '/mycommand') -> the command is executed from the console instead of the player PlayerA
- scriptas(~console, myfunction()) -> PlayerOfflineException: expecting a player name, but "~console" was found.
I tried to make a simple alias that execute a command from the targetted player (or console) and that shows the returned message.
My alias was like that:
~admin:/sudo $target $ = >>>
@return = capture_runas(
if(@return != ''){
msg(@return)
}
<<<