Having trouble stopping players from entering

Discussion in 'Plugin Development' started by dakoslug, Jul 17, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    dakoslug

    I'm updating my plugin to 1.6.2 and it is able to kick players from the server. But as of recently, it can no longer stop them from re-entering

    There is an error log

    Code:
    2013-07-17 11:29:48 [INFO] [EmergencyDowntime] CONSOLE has kicked everyone out of the server!
    2013-07-17 11:29:48 [SEVERE] Reached end of stream for /127.0.0.1
    2013-07-17 11:29:50 [SEVERE] java.lang.NullPointerException
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.PendingConnection.a(PendingConnection.java:164)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.Packet254GetInfo.handle(SourceFile:72)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.PendingConnection.d(PendingConnection.java:49)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:41)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:29)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
    2013-07-17 11:29:50 [SEVERE]    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    2013-07-17 11:29:53 [INFO] dakoslug[/127.0.0.1:53356] logged in with entity id 671 at ([world] 11.649732113061896, 64.0, -42.45446653391803)

    Any reason for causing this?
     
  2. Offline

    Alxlre

    dakoslug There's a NPE. Code please!
     
  3. Offline

    seemethere

    dakoslug How exactly did you stop the from re-entering beforehand?
     
  4. Offline

    molenzwiebel

    The error line is this:
    Code:java
    1. builder.append(org.apache.commons.lang.StringUtils.replace(object.toString(), "\0", ""));
    in
    Code:
    public void a(Packet254GetInfo packet254getinfo)
    which suggest something is wrong with polling the server (in the multiplayer menu)
     
  5. Offline

    dakoslug

    Alxlre

    Thanks for replying here's the /ed full code

    Code:java
    1. public void onPlayerLogin(PlayerLoginEvent event)
    2. {
    3. if (downtimefull || downtimepartial)
    4. {
    5. if (!player.hasPermission("emergencydowntime.exempt"))
    6. {
    7. event.setResult(PlayerLoginEvent.Result.KICK_OTHER);
    8. event.disallow(null,(ConvertedUserColor));
    9. log.info("[EmergencyDowntime] " + player.getDisplayName() + " was kicked due to Downtime.");
    10. }
    11. }
    12. }


    seemethere I didn't actually change anything in my preventative code actually, I just updated the project to 1.6.2

    molenzwiebel That's what I concluded too, because when I got kicked out, I tried to refresh the servers (from client) and this error message came out.
     
  6. Offline

    molenzwiebel

    My guess is that Bukkit did not update to the new poll format of 1.6 yet. Wait, or make a issue in Moijra
     
  7. Offline

    dakoslug

    @
    So it's a bukkit issue then?
     
  8. Offline

    dakoslug

    I'm still having issues D:. Has there be a resolution to this problem?
     
Thread Status:
Not open for further replies.

Share This Page