Solved Bungeecord connect, why Error?

Discussion in 'Spigot Plugin Development' started by ashStranger, Jun 3, 2018.

  1. Bungeecord connect, Error, How I to do?

    Code (Java):

    // authme
        public void inlogin(LoginEvent e) {
    ProxiedPlayer player = (ProxiedPlayer) e.getPlayer();
    e.getPlayer().sendMessage(new ComponentBuilder("§aGo Go Go").create());
    ServerInfo target = ProxyServer.getInstance().getServerInfo("hub");
    Code (error (Unknown Language)):

    [16:41:22] [Server thread/WARN]: [iLogin] Task #40 for iLogin v0.0.1 generated an exception
    java.lang.NoClassDefFoundError: net/md_5/bungee/api/connection/ProxiedPlayer
        at cn.gamemc.iLogin.event.login$1$ ~[?:?]
        at ~[paper1112.jar:git-Paper-1040]
        at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat( [paper1112.jar:git-Paper-1040]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D( [paper1112.jar:git-Paper-1040]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D( [paper1112.jar:git-Paper-1040]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C( [paper1112.jar:git-Paper-1040]
        at [paper1112.jar:git-Paper-1040]
        at [?:1.8.0_151]
    Caused by: java.lang.ClassNotFoundException: net.md_5.bungee.api.connection.ProxiedPlayer
        at ~[?:1.8.0_151]
        at ~[paper1112.jar:git-Paper-1040]
        at ~[paper1112.jar:git-Paper-1040]
        at java.lang.ClassLoader.loadClass( ~[?:1.8.0_151]
        at java.lang.ClassLoader.loadClass( ~[?:1.8.0_151]
        ... 8 more
    • Funny Funny x 1
  2. Is your Plugin on a BungeeCord-Server enabled?
  3. 在LoginEvent時玩家還沒有正式進入
    還有你的插件應該是Bungeecord的 這裏是for Spigot XD
  4. Bukkit can't read BungeeCord-Plugins. Move your BungeeCordPlugin on a BungeeCord-Server.

    Exception: ClassNotFoundException
    • Winner Winner x 2
  5. ohhhh u are right, sorry my bad
    thats the reason :L

    He means u are coding a bungeecord plugin, proxiedplayer is for bungee only, u cant put
    bungee plugin into spigot server XD
    • Agree Agree x 1
  6. I want to use spigot. What should I do?


  7. I want to use spigot. What should I do?
  8. 就像以上所說 你應該要用到一個叫做Plugin-Messaging-Channel的東西, 當你的伺服器連接了BungeeCord 並且玩家是由BungeeCord進入,你可以註冊一個Out Going Channel,然後用字符控制玩家在伺服器之間傳送,上一樓所說的連接有很多解釋
  9. 好的,谢谢大家的回复
  10. 記得可以轉成 "Resloved" ;)
    • Agree Agree x 1
  11. Ah, yes, somebody who can read errors and understand them :D Just like me. Sometimes.