CodeCrafter47 / BungeeTabListPlus

GNU General Public License v3.0
145 stars 70 forks source link

Bungee Api not working #721

Closed Kinqdos closed 1 year ago

Kinqdos commented 1 year ago

Hey guys I spent trying to get your bungee api working, I cannot get it done. I have only one class and the bungee.yml:

package com.kinqdos.bungeetest;

import net.md_5.bungee.api.plugin.Plugin;

public class Main extends Plugin {

    @Override
    public void onLoad() {
        System.out.println("------------------------------------Load------------------------------------Load");
    }

}
name: BungeeTest
main: com.kinqdos.bungeetest.Main
version: "1.0"
author: Kinqdos
softDepends: ['BungeeTabListPlus']

As you see Im not even using the api right now. But only this bit of code is causing the tablist not to showing up. I only get the vanilla tablist. When I remove BungeeTabListPlus from the depends in the bungee.yml. Everything is working fine. I can see the btlp.

What am I doing wrong? Please help me?

CodeCrafter47 commented 1 year ago

There is an example plugin on https://github.com/CodeCrafter47/BungeeTabListPlus/tree/dev/example/bungee. You can use that as a starting point for your own plugin.

Kinqdos commented 1 year ago

I tried the example plugin, but its the exact same thing. I pulled the code from github and compiled the example plugin without any changes. The tablist is working fine until I add the plugin. Right after restart I only get the vanilla tablist. When I remove the plugin everything is fine.

CodeCrafter47 commented 1 year ago

Have you checked the proxy log for error messages?

Kinqdos commented 1 year ago

Yes sure, but there is nothing.

CodeCrafter47 commented 1 year ago

If there are no obvious errors, then check for things that you expect. Like the messages BungeeCord prints, telling you it is loading the plugin, it is enabling the plugin. BungeeTabListPlus itself prints messages when loading configuration files. You can also check ingame whether commands registered by the plugins work. BungeeTabListPlus registers a /btlp command. The demo plugin has a /tabdemo command.

Kinqdos commented 1 year ago

Screenshot 2023-06-11 121019

So here is the full startup log, everything is like expected. The /btlp command works as expected. But the /tabdemo command does nothing. In addtion I want so say that I have not installed the bukkit bridge. But as this is a bungeecord plugin this shouldnt matter right?

CodeCrafter47 commented 1 year ago

The log looks as would be expected. To pinpoint the issue I suggest you remove all plugins except BungeeTabListPlus and the API demo. Also use BungeeCord instead of Waterfall. That is how I test the plugin. If that works you can then continue to add your other plugins one by one, and see at which point it stops working.

Kinqdos commented 1 year ago

Well thank you for your help. BungeePluginManager seems the be the problem. I dropped it and everything works fine. Weird bug that it only affects plugins wich are using the api and not btlp by default. Thanks for the support