Set the command that shall be executed on purchase
Parameters:
command - The new command
isAsConsole
booleanisAsConsole()
Returns if the command will be executed as the player or as the console
Returns:
false: Gets executed as if the player would type it in, true: Gets executed as if the console sent it
setAsConsole
voidsetAsConsole(boolean asConsole)
Define if the command should be executed as if the console typed it or as if the buyer typed it.
true: as if the console typed it
false: as if the buyer typed it