Commit Graph

219 Commits

Author SHA1 Message Date
md_5
30b381853c Change packet handling from ByteBufs to byte arrays to work around netty bug. Connection now appears to be stable - just need to add an optimized encryption algorithm back. 2013-03-14 17:24:32 +11:00
md_5
b0820208e6 @normanm @trustin This hack appears to fix all my issues with writing ByteBufs directly to channels. new @lazertester.party(). Others, please note this still isn't even a beta quality build. Due to memory laziness this build will only accept one connection. 2013-03-13 20:11:41 +11:00
md_5
bc0a076e4b Don't sync, its an optimization - right? 2013-03-13 18:08:43 +11:00
md_5
1763dd3078 Remove unneeded channel option. Still trying to fix all these disconnect errors though. 2013-03-13 18:07:07 +11:00
md_5
373ec187fb Fix /server command to only show server name 2013-03-12 18:07:25 +11:00
md_5
ac2c96c2ea This test WITHOUT encryption reveals something is majorly wrong with our packet decoding causing random and frequent disconnects. 2013-03-12 17:53:18 +11:00
md_5
5688099605 Also make sure we get the restricted value per server 2013-03-12 17:14:50 +11:00
md_5
4805087e38 Case insensitive sort 2013-03-12 17:11:06 +11:00
md_5
e2f134ec08 Actually alphabetize players - thanks @Grooohm for the good spot! 2013-03-12 16:56:09 +11:00
md_5
92c1450909 Fix issue #129 - make chat event fire for commands, and add isCommand method. 2013-03-12 15:15:25 +11:00
md_5
fea3642550 Add #183 - restricted servers 2013-03-12 12:13:23 +11:00
md_5
f02d17c979 Fix issue #55 - show alerts in console 2013-03-12 12:03:21 +11:00
md_5
3dac86a94c Add getConsole() to the API 2013-03-12 12:01:47 +11:00
md_5
758e196479 Rewrite list command for per server breakdown, and alphabetizing. 2013-03-12 11:58:04 +11:00
md_5
5dd3384b31 Add GetServer channel, see #145 2013-03-12 11:43:37 +11:00
md_5
59efec128d Add ProxiedPlayer.chat, see #146 2013-03-12 11:38:11 +11:00
md_5
3b90737273 Update CipherCodec to try and fix issues. 2013-03-12 11:21:39 +11:00
md_5
f9f664f9b6 Try using out.writerIndex instead of readerIndex 2013-03-11 20:27:19 +11:00
md_5
9edcda7ace Downgrade NIO to 1.4.7 2013-03-11 18:28:10 +11:00
md_5
cd1420d9cd Fix entity rewrites on falling blocks. 2013-03-11 14:31:51 +11:00
md_5
a3e1493ce1 Merge NIO into master. I would not recommend this on a production server at all. Its 1.5 anyway. 2013-03-11 13:30:29 +11:00
md_5
9fb814003b Handle kicks when trying to login to server. Now we have to be about done. 2013-03-11 10:15:14 +11:00
md_5
76319371f7 Small code / api cleanup. Need to fix kicking in general, especially in ServerConnector before release. 2013-03-11 10:06:14 +11:00
md_5
2e33ab1460 Remove outdated javadoc 2013-03-11 09:52:53 +11:00
md_5
cfd10f5714 Handle when user gets kicked midway through login to other server 2013-03-11 09:47:42 +11:00
md_5
6ae5feee60 Error handling when cannot connect to server. 2013-03-11 09:39:37 +11:00
md_5
0b7b87d9c3 Wait 100ms before closing socket to give server time to process. 2013-03-11 09:30:49 +11:00
md_5
fa5804ec86 OMG WTF BBQ IT WORKS. LETS IRON OUT BUGS AND GET OUR RELEASE TARGET, ONLY 12 HOURS LEFT. 2013-03-11 09:18:39 +11:00
md_5
6e18403cd9 Ensure all resources are closed all the time. 2013-03-11 09:11:36 +11:00
md_5
f67ad024f5 Make builds expire. 2013-03-10 20:01:30 +11:00
md_5
a0989a8932 Update for 1.5. This build only supports 1.5, not any other versions. 2013-03-10 12:41:13 +11:00
md_5
3be83cb5a4 Disconnect when exception caught 2013-03-09 17:59:44 +11:00
md_5
0ce02251d4 Start work on a little spit and polish, with cleaner exceptions. 2013-03-09 16:47:13 +11:00
md_5
b4d104d258 *actually compile (wire up the broadcast method) 2013-03-09 14:31:39 +11:00
md_5
0c69814db7 Make sendMessage work again 2013-03-09 14:29:54 +11:00
md_5
f0766ebcfb Bridge packets both ways. 2013-03-09 14:27:24 +11:00
md_5
f0a19e0f45 Small cleanup of packet classes 2013-03-09 14:23:40 +11:00
md_5
6525502836 We can login now. Kindof. *wipes sweat off brow. 2013-03-09 14:19:12 +11:00
md_5
504f703fbb This is so tiring 2013-03-09 12:35:32 +11:00
md_5
4fb85721a9 Nearly ready to get a working connection, however few hacks due to own shortcomings and netty shortcomings. 2013-03-09 12:08:26 +11:00
md_5
e12bc1d92e Closer to connecting, trying to figure out this encryption bug also present in first connect on Spigot 2013-03-09 10:47:12 +11:00
md_5
bcaafc206f Advancing further in the login process. 2013-03-09 10:10:36 +11:00
md_5
8a96555cc7 We can now get pings! 2013-03-09 09:54:19 +11:00
md_5
45c848a4fd Cleanup channel initialization - now its time to get this show working. 2013-03-09 09:45:10 +11:00
md_5
9e0ae0a70d Thread login auth properly. 2013-03-08 18:26:59 +11:00
md_5
9ad9003974 Tigthen access + javadocs on a few netty related classes. 2013-03-08 18:07:21 +11:00
md_5
e18fe49cf9 Whats this? It compiles. Doesn't mean it near works though. 2013-03-08 17:52:17 +11:00
md_5
c3d702a5b3 Switch main packet interface to bytebuf 2013-03-08 17:35:01 +11:00
md_5
cdf26f7950 Nearing a compilale state, gonna have to redo the bootstrap. 2013-03-08 17:24:09 +11:00
md_5
644deee3c6 Redo parts of login and connection sequences 2013-03-07 21:33:49 +11:00
md_5
b6e76f4054 Cleanup permissions and disconnect sequences 2013-03-07 21:04:03 +11:00
md_5
0f9cc76633 Update Server interface to remove depreceated methods 2013-03-07 20:52:19 +11:00
md_5
0afc52c130 Upstream and downstream bridges are now uber sexy 2013-03-07 20:47:39 +11:00
md_5
0077af58d0 Start work on netty overhaul 2013-03-07 20:05:41 +11:00
md_5
87e78bae7e Fix #177 - greload and listeners 2013-03-06 12:04:25 +11:00
md_5
5c1d7e1c5b Allow setting tab list size per listener see #173 2013-03-04 22:52:53 +11:00
md_5
efcf4c6a59 'fix' #171 & #147 2013-03-04 21:35:52 +11:00
md_5
317f286789 Handle removed servers in reconnect 2013-03-02 19:26:19 +11:00
md_5
385699380f Use standard log format, may relate to #213 2013-03-02 13:42:10 +11:00
md_5
83e3786414 Include full libraries, especially since we don't have BouncyCastle or BukkitDev now. 2013-02-28 17:03:05 +11:00
md_5
6afff00da9 Restart listeners on reload (reloads MOTD too). See issue #157 2013-02-26 11:40:58 +11:00
md_5
002f32a879 Fix deep config saving. 2013-02-23 14:55:49 +11:00
md_5
0cf657592d Take correct substring 2013-02-23 11:23:49 +11:00
md_5
cb0c010029 Fix #136 2013-02-23 09:49:55 +11:00
md_5
3cff9eff24 Fine, kick as usual 2013-02-21 18:18:46 +11:00
md_5
92a212c8c8 Cleaner exceptions. 2013-02-21 18:17:44 +11:00
md_5
f1f10521e2 Use native Java ciphers for encryption / decryption - now that we have our buffer issues sorted this should be a small speed boost. 2013-02-21 17:13:04 +11:00
md_5
0f8f8cb289 Only sleep on client read - prevent insane lag 2013-02-21 17:06:38 +11:00
md_5
59a7e6f9c4 Make disabling plugins the last thing we do. 2013-02-21 17:05:31 +11:00
md_5
0c5d76b860 Workaround for kicks 2013-02-19 20:12:33 +11:00
md_5
297c8e2c8b Use correct disconnect sequence at all times, fixes #119 and events not firing at stop 2013-02-18 19:24:40 +11:00
md_5
c44dc7931a Fix kicks - that was easy 2013-02-18 18:35:33 +11:00
md_5
ce9766aae4 Default sleep time of 1 2013-02-16 18:18:31 +11:00
md_5
0b10f83916 Cut CPU load to sane amounts in the same way that Minecraft does. 2013-02-16 12:41:26 +11:00
md_5
feb64312ca Fire events + plugin channels in server login 2013-02-16 10:21:35 +11:00
md_5
190e5109cf Silence EOF error on login - see #127 2013-02-16 09:35:54 +11:00
md_5
05a6b566b2 Rewrite login process in preparation for both forge and netty. 2013-02-16 09:34:31 +11:00
md_5
51e2570ddd Clean up formatting of initial handler a little. 2013-02-16 09:01:56 +11:00
md_5
6ad40aba66 Remove debug + kick properly 2013-02-16 09:01:12 +11:00
md-5
f27f8e9ae7 Use kick exception to disconnect on login. 2013-02-16 08:53:20 +11:00
md_5
7974ccc0bf No more errors in the server console, but a certain mod is still breaking the rules. 2013-02-14 19:50:57 +11:00
md_5
9b1f1d9a50 Forge support is now working - however an unidentified mod is breaking it due to the use of packet 80. All I can tell is this mod is present in FTB lite. 2013-02-14 19:41:16 +11:00
md_5
bef2818537 Fix forge support - #111 2013-02-14 18:30:48 +11:00
md_5
0451c35bf8 Finish up Forge support - yay. 50% chance this works. Fixes issue #111 2013-02-14 17:27:35 +11:00
Austin Smith
a8c60180d7 Don't instantiate a ReconnectHandler if a plugin has provided one on load 2013-02-14 06:25:23 +11:00
md_5
379376f0fa Add player disconnect event, thanks @lazertester 2013-02-13 18:49:08 +11:00
md_5
d2a919fc06 Rework packet reading a little in more preparation for Forge. 2013-02-12 12:05:06 +11:00
md_5
d17c457040 Add experimental offline mode support - closes issue #121 2013-02-12 11:48:38 +11:00
md_5
0d5099bee5 Call login event 2013-02-11 17:26:52 +11:00
md_5
2b1d2cba04 All I actually needed was: nextServer = null; 2013-02-10 21:40:06 +11:00
md_5
25d2902240 Quick fix for /server, will do a better job later 2013-02-10 21:36:37 +11:00
md_5
9c5e02e20a Add groundwork for custom protocols such as forge in a really cool manner - has not been tested, so may be a regression on prior build. 2013-02-10 21:26:49 +11:00
md_5
9f4fc4dfac Forge and Spoutcraft are so annoying they accidentally got locked out again. 2013-02-10 21:24:44 +11:00
md_5
da9c41ae66 Fix reloading. 2013-02-10 21:08:41 +11:00
md_5
c5e15697a4 Fix server ping method. 2013-02-10 20:18:08 +11:00
md_5
154722eacc Add perm debug command 2013-02-10 17:41:34 +11:00
md_5
affecd858a Let Jenkins offer the shaded jar for download, and keep it out of maven central. 2013-02-09 19:28:11 +11:00
md_5
b7bb623064 Keep shaded jar away from main jar. 2013-02-09 19:20:08 +11:00
md_5
8840dade68 Finish merge of protocol subproject 2013-02-09 19:08:56 +11:00
md_5
9e2eda672d Cache the client status packet. 2013-02-09 19:01:18 +11:00