Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by NaJated, May 11, 2016.
How would I make a Bukkit Player execute a Bungee Command, forcefully?
The same way you make them use any command.
he's talking about proxy commands.
If you want an easy way to make players run proxy commands from bukkit, send them a JSON message with a clickevent that makes them run the command
Do you think you could give us an example. Really dont wanna look for json stuff
It's mainly part of the bungee api but also included in spigot, just use player.spigot().sendMessage(...) instead of player.sendMessage(...) after you made your component
I want to execute commands not send messages lol
That's why you
Bungee commands have to be sent by the client.
Use plugin messages to contact to bungeecord from bukkit, I don't think it's possible to force the player to run a command, and dispatching a command from bukkit will do nothing, bungeecord commands are not visible to bukkit.
You can't. What BungeeCord command needs to be ran that you can't do with the messaging channel?
Bungeecord command to store cross server data.
You have a plugin on the bungeecord side, right? Just implement a listener in the bungeecord side and a sender in the bukkit side.
How do I do that.. ?
Implement PluginMessageListener in the bungeecord level and then send the plugins messages from bukkit
What do you mean bungeecord level?
With a bungeecord plugin
Yes but theres no messaging channel like "command", as such.
Register your PluginMessage channel on the bukkit side, register a PluginMessageEvent on the bungee side and send whatever data needs to be send over it!
Q: What bungee side?
A: Your bungeecoord plugin used to coordinate things
Q: I dont have a bungee plugin?!
A: Make one!
That would probably not work. As the perform method is for Bukkit Commands, not Bungee.