SpongePls [BungeeCord Forge Support]


#66

Hi, I’m trying to use this plugin. Currently I’m using your latest build 1.1 SNAPSHOT b#35

I have followed the documentation you have provided. I have a forge server set up with the following config:

Forge Config:

max-tick-time=60000
generator-settings=
force-gamemode=false
allow-nether=true
gamemode=0
enable-query=false
player-idle-timeout=0
difficulty=1
spawn-monsters=true
op-permission-level=4
pvp=true
snooper-enabled=true
level-type=DEFAULT
hardcore=false
enable-command-block=true
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
server-port=25568
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
generate-structures=true
online-mode=false
max-build-height=256
level-seed=
prevent-proxy-connections=false
use-native-transport=true
enable-rcon=false
motd=A Minecraft Server

Bungee Config:

groups:
  kmccmk9:
  - admin
servers:
  lobby:
    motd: '&1K9 Minecraft!'
    address: localhost:25566
    restricted: false
  vanilla:
    motd: '&1K9 Minecraft - Vanilla!'
    address: localhost:25567
    restricted: false
  pixelmon:
    motd: '&1K9 Minecraft - Pixelmon!'
    address: localhost:25568
    restricted: false
timeout: 30000
player_limit: -1
default_server: Lobby
listeners:
- query_port: 25577
  motd: '&1K9 Minecraft!'
  tab_list: GLOBAL_PING
  query_enabled: true
  proxy_protocol: false
  forced_hosts:
    pvp.md-5.net: pvp
  ping_passthrough: false
  priorities:
  - lobby
  bind_local_address: true
  host: 0.0.0.0:25565
  max_players: 6
  tab_size: 60
  force_default_server: true
prevent_proxy_connections: false
permissions:
  default:
  - bungeecord.command.server
  - bungeecord.command.list
  - bungeeconnector.use
  admin:
  - bungeecord.command.alert
  - bungeecord.command.end
  - bungeecord.command.ip
  - bungeecord.command.reload
  - bungeecord.command.send
  - bungeeconnector.*
online_mode: true
log_commands: false
disabled_commands:
- disabledcommandhere
connection_throttle: 4000

SpongePls Config:

#####################################
# SpongePls coniguration. YAML ONLY #
#####################################

allowed-servers:
  - 'pixelmon'

Now in game, in my lobby I try to go to the pixelmon server and nothing happens. No errors within game, no errors within console of Pixelmon Forge server. The only thing I do see within Bungee is:

16:53:29 [INFO] [SpongePls] Using the Forge Server Connector for kmccmk9
16:53:29 [INFO] [SpongePls]  for the target "pixelmon".
16:53:29 [INFO] [kmccmk9] <-> ServerConnector [pixelmon] has connected
16:53:29 [INFO] [kmccmk9] <-> ServerConnector [pixelmon] has disconnected

Obviously from this log it looks like it properly detected I wanted to go to a Forge enabled server but couldn’t establish a connection. I’m kinda stumped at this point as to where I’m going wrong. Any help would be appreciated. Again no other errors anywhere.


#67

make sure you enabled the BungeeCord related settings on the gameserver in config/sponge/global.conf
specifically the BungeeCord module and ip-forwarding


#68

Thanks for replying! After making the two changes you suggested, it started to work as expected. Thank you very much!


#69

@phit i’ve the same issue but i’ve all activated :confused: what can i do?


#71

Hello, I have this error after enabling ping_passthrough and forced_hosts and installing https://www.spigotmc.org/resources/motd-passthrough-get-true-motds-of-your-servers.9651/

04:17:23 [SEVERE] java.lang.reflect.InvocationTargetException
04:17:23 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04:17:23 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
04:17:23 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
04:17:23 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:498)
04:17:23 [SEVERE] at co.ryred.spongepls.CustomClassLoader.loadClass(CustomClassLoader.java:88)
04:17:23 [SEVERE] at co.ryred.spongepls.SpongePlsPlugin.changeChild(SpongePlsPlugin.java:147)
04:17:23 [SEVERE] at co.ryred.spongepls.SpongePlsPlugin.onEnable(SpongePlsPlugin.java:109)
04:17:23 [SEVERE] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:226)
04:17:23 [SEVERE] at net.md_5.bungee.BungeeCord.start(BungeeCord.java:303)
04:17:23 [SEVERE] at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:37)
04:17:23 [SEVERE] at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
04:17:23 [SEVERE] Caused by: java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: “net/md_5/bungee/netty/HandlerBoss”
04:17:23 [SEVERE] at java.lang.ClassLoader.defineClass1(Native Method)
04:17:23 [SEVERE] at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
04:17:23 [SEVERE] at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
04:17:23 [SEVERE] … 11 more
04:17:23 [SEVERE] java.lang.NoSuchFieldException: invokableObj
04:17:23 [SEVERE] at java.lang.Class.getDeclaredField(Class.java:2070)
04:17:23 [SEVERE] at co.ryred.spongepls.SpongePlsPlugin.changeChild(SpongePlsPlugin.java:149)
04:17:23 [SEVERE] at co.ryred.spongepls.SpongePlsPlugin.onEnable(SpongePlsPlugin.java:109)
04:17:23 [SEVERE] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:226)
04:17:23 [SEVERE] at net.md_5.bungee.BungeeCord.start(BungeeCord.java:303)
04:17:23 [SEVERE] at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:37)
04:17:23 [SEVERE] at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
04:17:23 [INFO] Enabled plugin SpongePls version 1.1-SNAPSHOT-b#35 by Cory Redmond


#72

Hello
I have a doubt and I hope it is the right place to ask.
I have seen that some networks use bungeecord to create a universal lobby and from there you can go to the spongeForge server that you want, but I have also seen that you can directly enter the desired server by omitting the lobby, obviously using the dedicated ip of that server sponge.
How can I do that?
I understand that the servers must be in Offline mode to work with Bungee, therefore, users should not be able to enter directly to each server due to security issues.
I would appreciate your explanation that right now I am quite confused.


#73

to directly join a server bungeecord has a feature called forced_hosts, basically point whatever domain/subdomain at the bungeecord server aswell, if the user then uses that specific domain to join they will be directly send to the server you configured

see forced_hosts on the official docs https://www.spigotmc.org/wiki/bungeecord-configuration-guide/


#74

I will investigate on the subject, thanks for the information. Greetings.


#75

hi, cannot download this mod because the link does not work anymore!
is this projekt dead?


#76

Use the WaterFall.