Cuberite Forum
Prevent 1.8 clients from joining? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Prevent 1.8 clients from joining? (/thread-1612.html)

Pages: 1 2 3


RE: Prevent 1.8 clients from joining? - Mathias - 12-25-2014

Sorry for bringing this topic up again, but I need some help. After updating my server to the latest MCServer version today, 1.7.x clients have started crashing when joining. The crash message:
Code:
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.

Time: 2014-12-24 21:10
Description: Ticking screen

java.lang.NullPointerException: Ticking screen
    at bjb.a(SourceFile:514)
    at fz.a(SourceFile:97)
    at fz.a(SourceFile:15)
    at ej.a(SourceFile:174)
    at bcx.e(SourceFile:78)
    at bao.p(SourceFile:1343)
    at bao.ak(SourceFile:774)
    at bao.f(SourceFile:728)
    at net.minecraft.client.main.Main.main(SourceFile:148)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at bjb.a(SourceFile:514)
    at fz.a(SourceFile:97)
    at fz.a(SourceFile:15)
    at ej.a(SourceFile:174)
    at bcx.e(SourceFile:78)

-- Affected screen --
Details:
    Screen name: ~~ERROR~~ NullPointerException: null

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [bjk['Zakashu'/3309, l='MpServer', x=160,00, y=124,62, z=64,00]]
    Chunk stats: MultiplayerChunkCache: 26, 26
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options:
    Level spawn location: World: (160,123,64), Chunk: (at 0,7,0 in 10,4; contains blocks 160,0,64 to 175,255,79), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 12565 game time, 14950 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Forced entities: 20 total; [bjk['Zakashu'/3309, l='MpServer', x=160,00, y=124,62, z=64,00], we['Bat'/3328, l='MpServer', x=217,34, y=12,03, z=73,88], xz['Creeper'/3329, l='MpServer', x=222,53, y=-996,66, z=70,16], xk['item.tile.sapling.oak'/3330, l='MpServer', x=223,38, y=69,13, z=77,63], xz['Creeper'/3331, l='MpServer', x=208,97, y=-1016,06, z=63,59], we['Bat'/3310, l='MpServer', x=171,03, y=30,03, z=64,28], xz['Creeper'/3311, l='MpServer', x=165,50, y=32,03, z=90,50], xz['Creeper'/3312, l='MpServer', x=160,16, y=13,03, z=84,59], xz['Creeper'/3313, l='MpServer', x=169,84, y=25,03, z=98,47], xz['Creeper'/3314, l='MpServer', x=150,13, y=64,03, z=66,53], xz['Creeper'/3315, l='MpServer', x=179,84, y=-993,09, z=95,09], we['Bat'/3316, l='MpServer', x=179,88, y=21,94, z=92,44], xz['Creeper'/3320, l='MpServer', x=181,72, y=-1023,91, z=53,78], xz['Creeper'/3321, l='MpServer', x=178,47, y=11,03, z=57,31], xz['Creeper'/3322, l='MpServer', x=178,50, y=11,00, z=54,09], xk['item.tile.stone'/3323, l='MpServer', x=181,50, y=70,13, z=27,50], xk['item.tile.stone'/3324, l='MpServer', x=185,50, y=70,13, z=27,50], xk['item.tile.stone'/3325, l='MpServer', x=187,50, y=26,13, z=26,50], we['Bat'/3326, l='MpServer', x=203,47, y=33,97, z=72,44], xz['Creeper'/3327, l='MpServer', x=195,28, y=12,03, z=92,31]]
    Retry entities: 0 total; []
    Server brand: ~~NULL~~
    Server type: Non-integrated multiplayer server
Stacktrace:
    at bjf.a(SourceFile:289)
    at bao.b(SourceFile:1972)
    at bao.f(SourceFile:737)
    at net.minecraft.client.main.Main.main(SourceFile:148)

Is there any way to block 1.7.x clients from joining the server, or solve this problem in another way?


RE: Prevent 1.8 clients from joining? - xoft - 12-25-2014

Right now it is unfortunately impossible. However, it should be rather easy to write a plugin that kicks out clients with unwanted versions.


RE: Prevent 1.8 clients from joining? - xoft - 12-25-2014

Did I say it'd be easy? Just wrote a quick plugin that should work for you:
https://github.com/madmaxoft/SingleClientVersion

Install it as usual, enable it on your server; upon load, it will create a SingleClientVersion.ini file, edit its contents to change the allowed client version, reload plugins to apply the changes.
I know the plugin's a bit raw, it has no description, no help, no user-friendly interface, but it's the very guts that can now be improved by anyone else.


RE: Prevent 1.8 clients from joining? - Mathias - 12-25-2014

(12-25-2014, 05:51 AM)xoft Wrote: Did I say it'd be easy? Just wrote a quick plugin that should work for you:
https://github.com/madmaxoft/SingleClientVersion

Install it as usual, enable it on your server; upon load, it will create a SingleClientVersion.ini file, edit its contents to change the allowed client version, reload plugins to apply the changes.
I know the plugin's a bit raw, it has no description, no help, no user-friendly interface, but it's the very guts that can now be improved by anyone else.
Thank you very much for this plugin! It seems to work fine.


RE: Prevent 1.8 clients from joining? - tigerw - 12-27-2014

Why block them? The crash was a completely intended feature, it even says so:

Quote:// Everything's going to plan. No, really, that was supposed to happen.