Quantcast
Channel: BungeeCord Plugin Development
Viewing all 4045 articles
Browse latest View live

Trouble sending plugin message Bungee -> Spigot

$
0
0
Okay, so this is the third day that I've been troubleshooting this. I don't want to have to use sockets for this, I'd much rather use the built in methods, so here's a final front.

Pretty much, in Spigot, I have a join event. It sends a plugin message to BungeeCord and Bungee does receive this. Now, in Bungee I have a PostLoginEvent and I send a plugin message on a channel that I have registered in both Bungee and Spigot, like so:...

Trouble sending plugin message Bungee -> Spigot

[Solved, Solution here] Trouble sending plugin message Bungee -> Spigot

$
0
0
Solved.

If anyone else encounters a problem with this and you are sending messages from players, I recommend sending them from servers.

Try something like this:
Spigot:
Code (text):
Bukkit.getPlayers()[0].getServer().sendPluginMessage(this, "channel", data);
BungeeCord:
Code (text):
getProxy().getServers().get("name").sendData("channel", data);
(For Bungee, find a different way of passing a server object as by name is not practical for public plugins.)

If anyone needs a plugin to develop.

$
0
0
I've just made the worst working plugin in the world. But the idea is amazing.

So google Bukkit PHPSend and Bukkit Websend.
There's a great plugin. PHPSend has the source. and i literally changed the onEnable class and removed some bukkit stuff to make the plugin function and stop the server when I create a jenkins job.

I'm sure you can do better.

[SOLVED] How can I make my plugin load AFTER a dependency?

$
0
0
How can I make it happen, I need to do it as my plugin is failing because it uses the Essentials API, but Essentials seems to load after my plugin. I did not put anything to do with load-before in my plugin.yml.

Get Mojang-Account UUID from ProxiedPlayer

$
0
0
I'm currently switching all my projects to the new UUID system provided by Mojang. I also know that there are some ways to get the UUID from the player name. But all these tools work by callng a Mojang-webservice.

@md_5 Is there any way to get a player's UUID from the ProxiedPlayer class? (Actually i'd be glad to know if it's possible in Spigot too) And if there is no way at this time is it planned?

Thank you in advance.

MOTD

$
0
0
How can I change the MOTD in BungeeCord with a command? Or how can I do so BungeeCord use the real server MOTD instead of the config MOTD?

Plugin Messaging Channel With BungeeCord on a different VPS.

$
0
0
Does the BungeeCord channel still work if the BungeeCord instance in on a different VPS than the Spigot instance, I don't understand how it would still work. How can Spigot/Bukkit work out where the BungeeCord messages should go to?

BungeeCord Plugin Bukkit/Spigot Plugin Communication.

$
0
0
In the Bukkit & Bungee Plugin Messaging Channel Wiki, it says:
"Note that this thread is ONLY for Bukkit Plugin<->Bungee (and, to some extent, Bukkit Plugin<->Bukkit Plugin) communication. Stay tuned for a Bukkit Plugin<->Bungee Plugin communication."

So when is Bungee Plugin <-> Bukkit Plugin going to be added? Or can someone explain/show an example of how to do this?

Cross-Server Friends for BungeeCord

$
0
0
Hello everyone,

I know that what I'm about to talk about exists for private use. If I just can't find a public version of it then please point me to it but...

I am attempting to make a friends plugin for the BungeeCord Proxy.

What we would like to have is...

A MySQL database of players with their friends
adding and removing friends
list of online friends (maybe what server that they are currently on displayed in the list)
cross server messaging between friends


That's is all that I...

Cross-Server Friends for BungeeCord

Taking Over My Plugin

[Solved] What method do you guys use for resetting maps?

$
0
0
I know there are several methods for resetting maps when games end, and I've found 2 that are "decent", but I am looking for the best possible way to reset your maps after a game ends?
(Note I do not mean regenerate the world. For instance games like Splegg, or annilation)
How would they reset their maps?

[Solved] Player FROM UUID (ArrayList in for loop) - Help?

$
0
0
Hi. I currently have an ArrayList ("allPlayers", which stores Strings) storing all players online's UUID (as a string). This is for a mini game. When starting the game, i want to perform actions to all of these players. So I create a for loop such as:

Code (text):
for(String pl : allPlayers){
Player fromUUID = Bukkit.getPlayer(UUID.fromString(player));
}
[​IMG]
I get an error on the .getPlayer part. Here's what i'm suggested to do by...

[Solved] Player FROM UUID (ArrayList in for loop) - Help?

Add someone to your resource as an author.

$
0
0
I believe I am posting this in the correct section, but notify me if I am not.

I just posted a resource, and It's a project worked on by me and my friend, but there doesn't seem to be a way to add him as an author...is there some way to do this?

(Solved) New to bungee-cord Need help

$
0
0
I am just trying to get the hang of all these bungee-cord channels and such, however i am not getting the expected results. My pluginMessageReceived event isn't firing. Here is my code.
Code (text):
public class MinigameJoinSigns extends JavaPlugin implements PluginMessageListener {
    @Override
    public void onEnable() {
        this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
        this.getServer().getMessenger().registerIncomingPluginChannel(this,...
(Solved) New to bungee-cord Need help

EOF Exception

$
0
0
I keep getting this exception saying the data input stream = null for some reason. I am fairly new to plugin messaging channels and might have messed up somewhere.

Send
Code (text):

public void sendMax(String server){

        ByteArrayOutputStream b = new ByteArrayOutputStream();
        DataOutputStream d = new DataOutputStream(b);
   
        try {
            d.writeUTF("Forward");
            d.writeUTF(server); //use specific server name for its player count...
EOF Exception

Big server|paid plugin|private

$
0
0
hey,
i have tried using some of the other plugin but they dont work how i want them to on my server. my server is currently sitting on 100 players and i really need this. its going to be a chat and administration plugin across many servers. msg me for details as i hope to keep this private.

thanks and Smile More! :)

JSON, Curl and PHP help :'(

$
0
0
Could someone help me. I need a way of logging into minecraft without the launcher.. Preferably via PHP.

I've attempted using this and I get an unexpected EOF. Other variants have thrown unexpected variable for curl_exec($sh)

http://pastebin.com/y2qLjjN2

:S

I need help with the following:

$
0
0
Hi again,

This time I need help with a few things,

I'm doing a "Pirate" BungeeCord server.

1 - How do I get when leaving the server, return to the lobby.
"when leave of server "pvp" and join again spawning in Lobby"

2 - How do to get the "CompassNavigation" plugin in good condition,
since I did not load the compass, or I not can set it.

3 - a plugin that is free to the lobby, which means that you can remove the welcome message, remove the rain, no messages deaths, not break, not leave the...

I need help with the following:

The Bungee & Bukkit Plugin Messaging Channel

$
0
0
NOTE: This thread is for Bukkit plugins communicating with Bungee.

Bukkit has a system for plugins to message each other (well, server<->client apparently), which Bungee hooks into along the lines as well. This allows you to send messages between Bungee and Bukkit and is how Janus & co. move you between servers.

Simply put, here is the basic code to send a message to Bungee from Bukkit to connect to another server:

Code (java):
The Bungee & Bukkit Plugin Messaging Channel

getUniqueId() Error

$
0
0
I get this error when I try to execute:

Code (text):
e.getConnection().getUniqueId().toString()
getUniqueId() Error
Viewing all 4045 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>