Bungee - Proxy DynamicMOTD 1.5b

Allows a dynamic MOTD and seperate player counts for forced hosts

  1. bloodsplat submitted a new resource:

    DynamicMOTD - Allows a dynamic MOTD and seperate player counts for forced hosts

    Read more about this resource...
     
  2. Really good plugin, but it would be even better, if it works.

    Code (Text):
    02:20:03 [SEVERE] Aug 19, 2013 2:20:03 AM net.md_5.bungee.event.EventBus post
    WARNING: Error dispatching event ProxyPingEvent(connection=[/xx.xx.xx.xxx:59613] <-> InitialHandler, response=ServerPing(protocolVersion=74, gameVersion=1.6.2, motd=§6CoolServert §f1.6.1, currentPlayers=0, maxPlayers=1337)) to listener [email protected]
    java.lang.NullPointerException
        at com.minecraftdimensions.dynamicmotd.pingListener.pingEvent(pingListener.java:19)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at net.md_5.bungee.event.EventBus.post(EventBus.java:46)
        at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:296)
        at net.md_5.bungee.connection.InitialHandler.respondToPing(InitialHandler.java:148)
        at net.md_5.bungee.connection.InitialHandler.access$100(InitialHandler.java:57)
        at net.md_5.bungee.connection.InitialHandler$2.run(InitialHandler.java:172)
        at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
        at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:123)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:366)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
        at java.lang.Thread.run(Thread.java:724)
     
     

  3. How did you create this error?
    ProxyPingEvent.getConnection().getVirtualHost().getHostName();

    is the issue I just dont see how its giving null
     
  4. I think its working, but because of the errors I removed it for now
     
  5. Alright well I can easily remove that error. Ill upload a new one now
     
    • Like Like x 1
  6. Hopefully that works as I don't actually use this plugin just yet so cant test it :p
     
  7. Thanks, I will test it soon! :)
     
  8. Feature Request:

    Since /greload does not reload the MTODs, please add an own reload command and/or save the motds in an own config?
     
  9. When I try to run BungeeCord with DynamicMOTD, BC just hangs at what would be the enabled plugin spot. I removed other plugins for testing and only your plugin does this. I have to force quit BC. I'm using BC-639.
     
  10. Going to need more information

    [​IMG]

    Works fine for me.

    Post your configs

    Edit: Does port 14444 happen to be used or blocked already?
     
  11. All ports are closed/blocked unless I specifically open them, so yes it isn't open. Is that for UDP or TCP?
     
  12. Thanks this will most likely solve the issue. Yes its to listen for the bukkit plugin when there are no players online so it will continue to update. I'll try add in a check that will disable this option if the port is blocked or closed.

    I see the loop that its getting stuck in, I'll do some testing and update for you
     
  13. I just unblocked 14444 for both UDP and TCP. I also verified nothing else is using the port. Still no luck.
    [​IMG]

    BC config:
    groups:
    pythros:
    - admin
    disabled_commands:
    - find
    player_limit: -1
    stats: 691f1559-06eb-4e68-a78a-bf6dfec2d2b0
    permissions:
    default:
    - bungeecord.command.server
    - bungeecord.command.list
    admin:
    - bungeecord.command.alert
    - bungeecord.command.end
    - bungeecord.command.ip
    - bungeecord.command.reload
    listeners:
    - fallback_server: pve
    max_players: 75
    host: 0.0.0.0:25577
    tab_size: 150
    force_default_server: false
    bind_local_address: true
    tab_list: GLOBAL_PING
    motd: 'XPE Main Server2'
    default_server: pve
    forced_hosts:
    hub.xp-e.net: pve
    - fallback_server: pvp
    max_players: 75
    host: 0.0.0.0:7141
    tab_size: 150
    force_default_server: false
    bind_local_address: true
    tab_list: GLOBAL_PING
    motd: 'XPE Factions2'
    default_server: pvp
    forced_hosts:
    pvp.xp-e.net: pvp
    factions.xp-e.net: pvp
    timeout: 30000
    connection_throttle: 4000
    servers:
    lobby:
    address: localhost:25577
    restricted: false
    motd: 'Server Hub For ChiRho Entertainment'
    pve:
    address: localhost:25565
    restricted: false
    motd: 'Welcome to Suvival (PvE)'
    pvp:
    address: localhost:7142
    restricted: false
    motd: 'XPE Factions'
    game:
    address: localhost:1234
    restricted: false
    motd: 'XPE Games'
    creative:
    address: localhost:1245
    restricted: false
    motd: 'XPE Creation'
    online_mode: true
    dmotd config:
    Servers:
    creative: true
    game: true
    pve: true
    pvp: true
    lobby: true

    Edit: fyi I don't have the plugin on my servers.
     
  14. It appeared to load with that version.
    Code (Text):
    20:53:11 [INFO] Enabled BungeeCord version git-BungeeCord-Proxy-1.6.2-SNAPSHOT-"68f11e4"-639
    20:53:11 [INFO] Loaded plugin DynamicMOTD version 1.5 by Bloodsplat
    20:53:11 [INFO] Initialising DynamicMOTD
    20:53:11 [INFO] Initialising Proxy
    20:53:11 [INFO] Initialising Config
    20:53:11 [INFO] Initialising Listener
    20:53:12 [INFO] Initialising Channels
    20:53:12 [INFO] Initialising Socket
    20:53:13 [INFO] Starting socket on port 14444
    20:53:13 [INFO] Enabled plugin DynamicMOTD version 1.5 by Bloodsplat
    20:53:13 [INFO] Listening on /0.0.0.0:25576
    20:53:13 [INFO] Listening on /0.0.0.0:8280
    20:53:13 [INFO] [Metrics] Connection reset
     
     
  15. How odd :S
    The features working too?
     
  16. It does. I went to the other version and it got hung up. Went back to the new one and it works?

    [​IMG]