Commit graph

213 commits

Author SHA1 Message Date
ORelio
c957ed0efd Remove invalid disconnect packet (2)
Forgot to apply the same change to Protocol17, see #45
2015-06-16 10:59:18 +02:00
ORelio
365af032ad Remove invalid disconnect packet
... use TCP connection closing instead. See #45
2015-06-14 21:43:24 +02:00
ORelio
0029561135 AutoRespond improvements
- Add improvements from pull request #76
- Add support for regexes instead of simple matches
- Add support for internal MCC commands eg script
- Add support for flexible INI file containing matches

TODO: Testing, sample INI file, proper documentation
2015-06-11 23:37:20 +02:00
ORelio
840ac01dc5 Fix crash on empty player list updates
Player list updates on MC 1.8 handler did not take into account the
amount of items in the list and were only processing the first item,
including when there wasn't any item to process. Unfortunately some
weird servers were sending useless empty tab-list updates, causing a
crash. Should fix issue #78 and forum posts 1267, 1269, 1284. Thanks
dbear20, link3321, gerik43, Darkaegis, k3ldon and Ryan6578 for their bug
reports! :)
2015-06-03 12:00:25 +02:00
ORelio
80b468b301 Add Mention to Mozroots in Readme file
See issue #77
2015-06-01 08:33:53 +02:00
ORelio
53156bdf98 Normalize AutoRespond bot
Move FromFile method from bots to ChatBot class
Rename file and class, removing space and underscore.
2015-05-26 19:17:37 +02:00
ORelio
b07091e3dd Merge branch 'Indev' of https://github.com/ORelio/Minecraft-Console-Client into Indev 2015-05-26 19:03:50 +02:00
ORelio
f7c729835a Add delay between sends of long messages
When a very long message is typed, a delay of 2 seconds is by default
used before sending parts of the long messages. The delay can be
modified or set back to 0 in configuration file, if necessary.
2015-05-26 19:01:39 +02:00
ORelio
fa626d4641 Merge pull request #75 from Bancey/Indev
Add AutoRespond Bot
2015-05-19 23:36:16 +02:00
Bancey
43fa3fb4b4 Auto Respond Bot
This bot allows users to add a bot that can detect and respond to
certain text.

The bot can be enabled/disabled via the ini file. (disabled by default)
The bot uses 2 files to let the user set what to pickup and what to
respond.
2015-05-19 15:36:20 +01:00
ORelio
5b662e2d07 Fix HeroChat public messages treated as private
See issue #63 - Also includes minor fixes and optimizations
2015-05-18 16:15:58 +02:00
ORelio
dd5e2f8e39 Rewrite translation rule processing
Improve speed and handling of %1$s tags
Fix prompt in ConsoleIO not being reset to gray
2015-05-17 21:45:00 +02:00
ORelio
93d58a8d81 Ignore invalid UUIDs for tab-list
If the server is sending invalid UUIDs, use an empty UUID instead
2015-05-17 21:10:01 +02:00
ORelio
834e446a74 Add 1.8.4 in supported version list
+ minor fixes to ConsoleIO
2015-05-13 10:59:46 +02:00
ORelio
33b84584aa Indentation change for Fix concurrency[..]
Indentation was intentionally left the same in previous commit for
clearer diff, this commit only fixes code indentation from last commit
2015-05-10 18:59:00 +02:00
ORelio
3376247826 Fix concurrency in ConsoleIO
Fix concurrency issues by using proper locks
2015-05-10 18:57:33 +02:00
ORelio
72498a6756 Fix ping failure causing double failure handling
"Failed to ping this IP" also caused "Failed to determine server
version" error, calling HandleFailure() twice.
2015-04-22 18:56:43 +02:00
ORelio
57c66c82d7 Merge error handlers
- Merge all error handling code into one method
- Fix ConsoleIO not clearing the line being typed upon reset
- Update console title upon logging in to the server
- Pass "failed to ping this IP" to AutoRelog (thx doranchak)
2015-04-22 10:27:53 +02:00
ORelio
6261e7adb7 More startup error handling
- Pass minecraft login failure message to AutoRelog bot (suggestion by
doranchak)
- Fix NullReferenceException in McTcpClient caused by SocketException in
ProxyHandler
- Refactor error handling code in Program.InitializeClient()
- More detailed error messages on network errors.
2015-04-20 17:26:16 +02:00
ORelio
791ecba454 Add timeout for server ping
Thanks doranchak & FantomHD (post no.1193)
+ Add missing doc for MinecraftVersionPrompt
2015-04-14 15:36:51 +02:00
ORelio
2cf46c0487 Fix crash when resizing terminal
Bug report by doranchak
2015-04-11 12:30:36 +02:00
ORelio
ea17ec87f1 Better exception catching
- Better catch in proxy handler
- Better catch in StartClient (thx doranchak)
2015-04-06 11:42:43 +02:00
ORelio
2c31efd0c9 Add server IP in default window title
Unix-Tool-Like syntax : user@host
Window title can be changed or disabled in INI file
2015-03-28 13:39:56 +01:00
ORelio
05a141c50d Improve offline interactions
- Add prompt for Minecraft version
- Improve offline-mode command prompt
- Fix default value on parse error in protocol handler
- Fix failed to connect not showing offline prompt
2015-03-25 22:50:20 +01:00
ORelio
7757d5ae03 Upgrade login/session timeout to 30 seconds
Might help when login/session servers take a long time to respond.
2015-03-25 22:14:38 +01:00
ORelio
82c95be611 Fix console background color
- Save & Restore background color when needed
- Remove useless color modifications
- Fix issue #71
2015-03-25 19:45:50 +01:00
ORelio
aaced855d8 Catch exceptions for bots for onTextReceived
Avoid crashing due to bots not properly processing text
2015-03-23 13:57:31 +01:00
ORelio
c30d3025f7 Use BouncyCastle for handling AES on Mono Framework
Mono Framework does not handle CFB-8 AES encryption mode. So now MCC
will now use borrowed code from the BouncyCastle project for handling
AES when running on Mono framework, instead of using a dirty workaround
to try getting Mono encryption working. Regular .NET framework
encryption module will still be used when not running under Mono (eg on
Windows or using Wine)

Should hopefully fix all the issues encountered on Mono including #41
and finally achieve full compatibility of MCC with Mac and Linux.
2015-03-19 22:16:42 +01:00
ORelio
858ad12783 Fix concurrency crashes for player list
Bug report by doranchak (forum post no 1136)
2015-03-19 22:08:26 +01:00
ORelio
e3c38ed6ac Update version info for 1.8.2 release 2015-03-11 19:58:39 +01:00
ORelio
e4916033fa Fix crash on disconnect when failed to connect
Fix #67 and bug report by doranchak (post no 1084 on forum thread at
minecraft forums)
2015-03-02 21:35:45 +01:00
ORelio
72c2ff5ef0 Handle HeroChat chat messages
Fix #63 and rewrite PMsend
Suggestion and PMsend v1 by JamieSinn
2015-02-26 12:45:24 +01:00
ORelio
57024a7b26 Fix crash when log file is in same folder
Fix #64 by adding an additional check
Bug report by JamieSinn (thanks!)
2015-02-26 12:19:46 +01:00
ORelio
c4628ba889 Update README.txt
Add a mention for sending chat messages or commands using remote control. In response to pull request #66
2015-02-24 08:16:36 +01:00
Jamie Sinn
89ccc9d22d Add Herochat/Essentials PM Check 2015-02-21 13:42:58 -05:00
ORelio
2408b51d28 Fix BungeeCord 1.8 (2nd attempt) 2015-01-31 11:21:06 +01:00
ORelio
391eca102c Add 15 seconds timeout to session and login
Add AutoTimeout class for use on login and session requests.
Bug report by GamerCorey7.
2015-01-27 20:38:59 +01:00
ORelio
ee406b233e Use Trim instead of space deletion 2015-01-27 20:23:59 +01:00
ORelio
24c4344a70 Fix scripts failing to send msg after reco
Script was using old disposed handler
Fixed by properly updating reference
Bug report by 1092CQ (thanks!)
2015-01-23 22:07:46 +01:00
medxo
bdbc408279 Update RemoteControl.cs 2015-01-22 11:20:46 +00:00
ORelio
dd001e3519 Auto-Tpaccept from everyone
Disabled by default.
Suggested by medxo
2015-01-02 22:10:12 +01:00
ORelio
1499f8cbfc Refactor Alerts Bot + Fix crash
More efficient, succint and readable code with less bugs!
Fixed crash when displaying alert under certain conditions.
2014-12-16 19:17:06 +01:00
ORelio
4752094f1f Fix server version detection for Bungeecord 1.8 2014-11-11 12:44:37 +01:00
ORelio
2dec21ddc7 Add Minecraft 1.8.1 in supported version list
Allows support for version=1.8.1 in config file
2014-11-11 12:36:15 +01:00
ORelio
8e458f7ab9 Add /list support in Protocol16
Removed fallback to server /list command
2014-11-11 12:35:08 +01:00
ORelio
8d16f1ec89 Add /list support in Protocol17
Fake UUID using md5(username) since protocol17 does not have UUID in
player list item packet
2014-11-10 20:56:12 +01:00
ORelio
f82041288d /list command improvements
Coding style, Guid, interface, Fallback Command
2014-11-10 20:43:00 +01:00
lokulin
7fa2e0d02e fixed whitespace to fit with code style 2014-11-11 00:55:42 +11:00
lokulin
07fed5cd24 Added a player list command /list 2014-11-11 00:32:32 +11:00
lokulin
5c8c3f42ed Merge branch 'master' into Indev
Conflicts:
	MinecraftClient/McTcpClient.cs
	MinecraftClient/Protocol/ProtocolHandler.cs
	MinecraftClient/Settings.cs
2014-11-06 20:31:31 +11:00