The API doc says:
sender: The player or server on whose behalf the commands should be executed.
Examples use server but with Spigot I can't get server to work anywhere, only player. I'm getting error:
Cannot cast org.bukkit.craftbukkit.v1_10_R1.CraftServer to org.bukkit.command.CommandSender.
There's a forum post that says this work(s)(ed) with Canary so I'm guessing the Bukkit code was never enhanced to support a CraftServer object.
I haven't checked the source yet but will soon. Just reporting this here for now.
The API doc says:
Examples use server but with Spigot I can't get server to work anywhere, only player. I'm getting error:
There's a forum post that says this work(s)(ed) with Canary so I'm guessing the Bukkit code was never enhanced to support a CraftServer object.
I haven't checked the source yet but will soon. Just reporting this here for now.