Skip to content

Slash function may not support 'server' argument in Bukkit / Spigot #312

@TonyGravagno

Description

@TonyGravagno

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions