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

Error in console with hidePlayer(Main.plugin, p)

$
0
0
Hi, I'm coding a plugin that should hide the player to all the others when he types a certain command, but apparently, I can't seem to get it working. In the IDE everything looks fine, no errors or what so ever, but when I compile it and try in game, an error appears in the console.

Here is the command of the plugin, and below the error I get in console.
Code (Text):
if (!Main.vanish.contains(p)) {
                    for (Player all : Bukkit.getOnlinePlayers()) {...
Error in console with hidePlayer(Main.plugin, p)

ProxyPingEvent dont show motd

$
0
0
Hello

I have this code
Code (Text):
    @EventHandler
      public void onPing(ProxyPingEvent event)
      {
       
        event.getConnection().disconnect(new TextComponent(
                "Your connection went wrong please re-add our server to the server list!"));
       
       
      }
But the motd is changed to https://gyazo.com/c58ca7322127b6f64821ea2ee7e77c58

But you can still join when server is pinged. Please help me.
it has a bit of hatred

the order of events of the api Bungee Cord.

$
0
0
hello excuse my question n00b

and excuse me for my English,


I would like to know the order of events of the api Bungee Cord. I'm trying to create an plugin, but I still have trouble detecting the player before 'Bungee Cord' sends it to a server.

BungeeCord plugin main class to another

$
0
0
So, I am making a bungeecord plugin and I want to use something from the configuration file on the 2nd class.

Code (Text):
package me.narpzy.cbvm;

import java.io.File;
import java.io.IOException;

import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;

public class cbvm extends Plugin {
   
    public void onEnable() {...

BungeeCord plugin main class to another

PostLoginEvent error

$
0
0
So I'm getting this error when I login to my server,
16:42:24 [SEVERE] Apr 21, 2018 4:42:24 PM net.md_5.bungee.event.EventBus post
WARNING: Error dispatching event PostLoginEvent(player=FatherImPregnant) to listener me.fairing.proxy.listeners.PostLoginListener@446a1e84
java.lang.NullPointerException
at me.fairing.proxy.listeners.PostLoginListener.onPostLogin(PostLoginListener.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at...

PostLoginEvent error

BungeeCord configuration file not saving.

$
0
0
So, I am making a bungeecord plugin and I want to use something from the configuration file on the 2nd class.

Code (Text):
package me.narpzy.cbvm;

import java.io.File;
import java.io.IOException;

import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;

public class cbvm extends Plugin {
   
    public void onEnable() {...

BungeeCord configuration file not saving.

BungeeCord config.yml file not letting you set the configuration.

$
0
0
So.

In my main class with this "config.set("version", "YourVersion");" It wouldn't let me edit the config on "version: YourVersion".

And I wondered if someone could help me.

Code (Text):
package me.narpzy.cbvm;

import java.io.File;
import java.io.IOException;

import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;

public class cbvm extends...

BungeeCord config.yml file not letting you set the configuration.

send a player to another server

$
0
0
Hi, I want to send a player to another server once he's already registered,

I have almost everything ready, but I can not send the player to another server because I do not know how to convert the text string of the plugin configuration into 'serverInfo'

the plugin is Bungee Cord just in case...

[​IMG]

[​IMG]

"Sending You" message

$
0
0
I'm trying to find out if this is a plugin or if this is all part of Bungee, I've seen a OP Prison server that has it so when you connect to any servers of theirs on Bungee, it says "Conecting you to Prison" then it says "Sending you to Prison".

Anyone know if this is a plugin or part of Bungee and how I may do this for my Network?

Simple message plugin (for example /help)

$
0
0
Hi guys. anyone know a plugin where you make a message that shows up when a user types a configured command?

For example, i have /discord on all my spigot servers and this shows them the discord link. It would be much more easy if this plugin was on the bungee side. I change those messages often and its very time consuming since i have to go through all my spigot servers.

secondsLeft replacement error

$
0
0
Hi, I'm making a report plugin and I want to replace "%time%" in my string to the seconds left for the cooldown.
However the ide tells me that I cant' replace that string with a long.
https://hastebin.com/uhavemiyex.vbs

How to set max players on bungeecord proxy using java?

$
0
0
How to set max players on bungeecord?
I want to show player that pinged my server this format: {online}/{online}+5

Thanks for any help.

Get online players on server and parse it into PAPI placeholder

$
0
0
Hey guys, is there a way how to get bungee server MOTD, Status (online,offline), and player count ? I need to get these and then parse them into PAPI placeholders.

BungeeCord OfflinePlayers

$
0
0
Hey dear Community,

I've tried a long time to check if an UUID is valid like in Bukkit with:
Code (Text):
if (Bukkit.getOfflinePlayer(p) != null) {
    //stuff
}
I tried it with my UUIDFetcher because the OfflinePlayer method does not exist in BungeeCord
Code (Text):
if (UUIDFetcher.getUUID(UUID) != null) {
    //stuff
}
But this don't work again..
does anyone has an option to check if an UUID is valid?

I need it to fix the NullPointerException at my /Ban command..
(when i enter an...

BungeeCord OfflinePlayers

For loop dosnt find player

$
0
0
Hey guys im currently making an abilty that is going to detect players infront of you but for some reason the for loop dosnt work
Code (Text):
if (ult.equals(UniversalKitHandler.createMage1BurnBeam())) {
                    Location loc2 = player.getLocation();

                    Location loc = player.getLocation();
                    Vector dir = loc.getDirection();
                    dir.normalize();
                    dir.multiply(5); // 5 blocks a way
                    loc.add(dir);...
For loop dosnt find player

Create a CUSTOM TAB_LIST

$
0
0
Hi. I need to add players to tablist. So if a player is in Faction server he will see his normal tablist, with players on that server and with prefix of that server, and then the players of other servers with prefix for example Minigames, Hub, etc. So for ever server I need to get the old tablist and add players to that tablist, I think. Any help?

set values in config file???

$
0
0
This is the code I have:


Code (Text):

  public void save()
  {
    ProxyConfig config = ProxyServer.getInstance().getConfig();
    File CONFIGURATION_FILE = new File(this.SETTINGS_PATH + File.separator + this.SETTINGS_FILE);
    try
    {
      config.set("test", true);
      save(config, CONFIGURATION_FILE);
    } catch (Exception e) {
      Configuration.debug(e);
    }
  }
 
The method doesn't work, I can't find anything anywhere on how to save values??? I'm so confused aha.

Wrong forum. Please delete

Getting cords of player from a server (Bungee -> Spigot -> Bungee)

$
0
0
I want to send a playername to a spigot server from a bungee plugin, then send back the player's x,y,z and world how do I do that?

My code:

Spigot - Main:

Code (Text):
@Override
    public void onEnable() {
        Bukkit.getMessenger().registerIncomingPluginChannel(this, "Tickets", new TicketsMessageListener(this));
        Bukkit.getMessenger().registerOutgoingPluginChannel(this, "Tickets");
 
Spigot - TicketsMessageListener:
Code (Text):

public class TicketsMessageListener implements...
Getting cords of player from a server (Bungee -> Spigot -> Bungee)

Map Font

$
0
0
Hi, how can I draw text in a map with bigger font?

[​IMG]
Viewing all 4023 articles
Browse latest View live