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

Check if player is banned?

$
0
0
I'm making a bungeecord plugin that integrates with a website to log banned players, but i need to check if a player was banned. Because there's no such thing as a ServerBannedEvent i need to use ServerKickEvent and check if e.getPlayer() is banned.

Packet lobby (Limbo)

$
0
0
I was thinking on how i could implement a limbo server for when the server is full, or the fallback servers (hubs) are unaccessible. The way i thought of implementing this is to create a fake ServerInfo where i would send the players if conditions are met. Then,i would send chunk data to the player and then make a runnable that sends keepalive packets to the players

What Should it do:
Look as a normal world to players and let them sit there while lobbies are back up, or slots go...

Packet lobby (Limbo)

Error when trying to implement BungeeCord config API

$
0
0
Hi there,

I'm trying to implement the BungeeCord Config API, using this piece of code, but when I to do it, it shows me this error:

[​IMG]

even though the second class hasn't even been imported, only the first one.
How can I fix this?
Thanks in advance.

setCancelled true help

$
0
0
Code (Text):

package me.alessio2010.playerlevels;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

public class MobKillsMenu implements Listener{
   SettingsManager settings =...
setCancelled true help

Bungeecord API error in console

$
0
0
Can someone help with my bungeecord api error?

It is to get the player count from a server.

Code (Text):

25.02 22:48:52 [Multicraft] Skipped 820 lines due to rate limit (30/s)
25.02 22:48:52 [Server] WARN Could not pass incoming plugin message to WalnootAPI v1.0
25.02 22:48:52 [Server] INFO java.lang.IllegalStateException: java.io.EOFException
25.02 22:48:52 [Server] INFO at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:449)...
Bungeecord API error in console

Get the IP the player used to connect

$
0
0
Hey,
I am currently trying to make a plugin to find out which IP address a player used to connect to the server. I have already found out that there is a way with protocols: http://wiki.vg/Protocol#Handshake
However, I don't know how I could then integrate it into Bungeecord. Is there possibly another method that does this for you in bungeecord?

ProxiedPlayer Name / UUID changing

$
0
0
Since Bungeecord is a Proxy and it sends players to servers in offline mode, I thought to myself that maybe you would be able to change the player and basically give them a nickname.

I know there's other threads about this, but there is not a clear answer about how to do it yet.

Thanks!
~D0an

Wrong section


BUNGEECORD HACKEADO

$
0
0
Hola comunidad Minecraft español .Cómo tanto español y estadounidense. Quisiera que me ayudaran a configurar un firewall para mí BungeeCord .

Tengo una network, lo eh protegido de mil maneras con plugins para evitar posibles hackeos ya que eh escuchado que existe un nuevo ByPass ipwhitelist! Un launcher supongo que permita acceder a los servidores con la cuenta del creador y así griffear. Eh escuchado algo de la IP 0.0.0.0, y BungeeHack. ¿Que opinan ustedes? Ya está visto videos de un...

BUNGEECORD HACKEADO

Bungeecord API isn't working.

$
0
0
Can someone help the Api isn't working and I got no error in console did I something wrong?
Code (Text):
@EventHandler

    public void onClick(InventoryClickEvent e) {

        Player p = (Player) e.getWhoClicked();



        if (e.getInventory().getName().equalsIgnoreCase("Server Selector")) {

            e.setCancelled(true);

            if (!(e.getCurrentItem().getType() == Material.AIR)) {

                String itemName = e.getCurrentItem().getItemMeta().getDisplayName();...
Bungeecord API isn't working.

JDA Error

$
0
0
Hello i have a weird JDA error. JDA is an API for discord. this is the error [​IMG]
https://gyazo.com/2cde1ae955a5d6f6fc8e183bc3350533

this is my main class
Code (Text):
package me.NiekGC.NiekGCBot;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;...
JDA Error

Two strings related in an Arraylist

$
0
0
Hi, I'm creating a plugin for my bungeecord but I have a question about it.
I'm already using an Array list so when a player used an specific command their uuid is added, I want to know if there is anyway to add two "values" in the Arraylist. For example:
Arraylist<name, prefix> = new Arraylist();
So when a player uses the command, it's name and a value or string I define where add at the same level. So when I get the name of the player I also get the value that was added, in this case...

Two strings related in an Arraylist

Calling an event in onDisable()

$
0
0
Is this even possible? It doesn't seem to work

Code (Text):
public class BasicPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
       
    }

    @Override
    public void onDisable() {
        Bukkit.getPluginManager().callEvent(new PluginDisablingEvent(this));
    }
}

Priority of loading

$
0
0
Hello, I'm creating one plugin and I need this plugin load as first.
Because other plugins depend on it. And they communicate with it since they are loaded.
Is there any way how to solve this problem?

Thanks :)

Best BungeeCord Votifier plugin?

$
0
0
Hello!

So this is my first time working with any type of voting stuff, so I really just need some directions.

I am looking for a SECURE voting listener plugin/api, that will basically give me what information is given whenever a player votes. I don't need it to do anything else but act as an API. Thanks for the help guys!

Error on creating files

getPluginManager().detectPlugins(folder) "NullPointerException"

$
0
0
I tried to use this method many times and I can't get it to work. What I want to do is load a list of plugins inside a folder, but it doesn't. It returns a "NullPointerException", line 354 of this class: https://github.com/SpigotMC/BungeeC...net/md_5/bungee/api/plugin/PluginManager.java

I don't give info about my own class because it happens with all folders: default plugins folder, custom folders, etc. I guess it's because BungeeCord can't read the...

getPluginManager().detectPlugins(folder) "NullPointerException"

Startup script for Bungee not working

$
0
0
Hello,

Why does my startup script for Bungee not work? http://prntscr.com/ima6kn

I need to keep the classpath section to retrieve the items from libs.

Thanks.
:D

Class Not Found Exception "org.sqltie.JDBC"

$
0
0
I want use sqlite for saving my plugin data, it's work on bukkit but not for this one.
Error :
View attachment 324193

SQLIte Java Line 127 :
Code (Text):
   
    @SuppressWarnings("deprecation")
   private boolean openConnection() {
        if (!isConnected()) {
            File dataFolder = new File(Main.get().getDataFolder(), dbname + ".db");
            if (!dataFolder.exists()) {
                try {
                    dataFolder.createNewFile();
                } catch (IOException e)...
Class Not Found Exception "org.sqltie.JDBC"

(Wrong section) %%__USER__%% In anti-piracy system does not put in user ID

$
0
0
Hello spigot users!

I am working on an anti-piracy system. I saw that if you put a public static string with "%%__USER__%%" as string that it puts the ID of the user there. But when i try this it won't really work.

I used this in my main class:

Code (Text):
    public static String uid = "%%__USER__%%";
   
    protected String getUsername(String id) throws IOException
    {
        URL url = new URL("https://www.spigotmc.org/members/" + id);
        URLConnection conn = url.openConnection();...
(Wrong section) %%__USER__%% In anti-piracy system does not put in user ID
Viewing all 4046 articles
Browse latest View live


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