Commit graph

171 commits

Author SHA1 Message Date
ORelio
0c81c703db Change version number for 1.8.1 2014-10-08 20:15:11 +02:00
ORelio
050b2985f5 Fix crash on RemoteControl launching a Script
List containing bots is modifier while being enumerated: crash
Fixed by copying the list before enumerating
Bug report by Nicconyancat
2014-10-08 08:05:45 +02:00
ORelio
ad5897fcb4 Fixed server alias not case insensitive
Bug report by TorchRJ_
2014-09-07 15:20:58 +02:00
ORelio
c53a696ffd Fixed %vars% not handled in chatbotlogfile
Bug report by TorchRJ_
2014-09-07 15:17:47 +02:00
ORelio
96a614b617 Fix ThreadAbortException beign reported to the user
This exception is normal when disconnecting from the server and should
be ignored.
2014-09-07 15:11:39 +02:00
ORelio
3718dad1ee Update README.md
Add a link to the README file for usage instructions
2014-09-06 20:40:34 +02:00
ORelio
8eb71bd3f8 Fix SSL errors not properly handled
Mono throws SSL errors as IOException when using SSLStream, instead of
AuthenticationException.
2014-09-06 18:19:39 +02:00
ORelio
20ce16fd2b Update README for 1.8.0 release
Update README file shipped with binary release
2014-09-04 15:17:50 +02:00
ORelio
88b8399c5c Add support for MC 1.8 protocol
Lots of changes in 1.8 protocol so a new protocol handler was necessary
Packet (de)compression done with dotNetZip Zlib compression engine
1.4.6-1.7.10 support is still there thanks to app refactoring
2014-09-04 13:58:49 +02:00
ORelio
2a8a6fadd3 Update alerts file loading
Fix issue with blank lines. Avoid duplicate entries.
Issue fixed with an alerts file provided by TRTrident
2014-08-29 12:04:52 +02:00
ORelio
dbefe16831 Add a setting for disabling auto tpaccept
For RemoteControl bot. Suggestion by TorchRJ_
2014-08-28 15:12:58 +02:00
ORelio
1847370cef User hort:port value for proxy settings
Removed fields "host" and "port"
Added field "server" expecting host:port
Request by TorchRJ_
2014-08-27 17:29:58 +02:00
ORelio
05065d42d1 Update "respawn" description in README
Issue reported by TorchRJ_
2014-08-27 17:25:55 +02:00
ORelio
edb989a04f More explicit repawn command description
Issue reported by TorchRJ_
2014-08-27 17:24:02 +02:00
ORelio
dea2862018 Fix "log" in scripts displaying the comment twice
Bug report by TorchRJ_
2014-08-27 17:22:27 +02:00
ORelio
5fd32828c7 Fix chatbotlogfile not creating/writing to logfile
Bug report by TorchRJ_
2014-08-27 17:19:33 +02:00
ORelio
4e65aa88fa Fix 'invalid server IP' when using a server alias
Bug report by TorchRJ_
2014-08-27 17:16:35 +02:00
ORelio
6e841f11aa Last changes for 1.8.0 Beta release
Update sample script
Update Readme file and add it to repository
Update version numbers and fix missing field in Program
2014-08-20 23:31:47 +02:00
ORelio
61907833bf Update README.md
Add more license info and minor improvments
2014-08-20 16:30:52 +02:00
ORelio
b0b65b7ce0 Add offline command prompt
Fix #42, and allow more interactive commands when not connected to a
server. /quit, /reco, /connect are the only allowed commands in this
limited command prompt.
Updated Assembly Info, version number is now 1.8.0.
2014-08-18 15:10:15 +02:00
ORelio
31e53c2dbd Add 1.7.10 in mcversion INI setting
"1.7.10" can now be used to designate protocol v5.
2014-08-18 13:33:50 +02:00
ORelio
cb49ad7036 Fix TAB different behavior between MCC and Vanilla
Vanilla sends everyting behing the cursor
MCC was only sending the beginning of last typed word
Now MCC will send everything behind the cursor.
2014-08-18 10:25:43 +02:00
ORelio
f99efb5177 Better connection lost detection
To detect that the TCP connection has been lost, try sending a small
packet every ~10 seconds. If the connection is lost, it will then throw
an exception which will allow MCC to detect that connection is lost, and
eventually properly trigger the AutoRelog bot.
- See issue #41 -
2014-08-11 12:38:39 +02:00
ORelio
774043fddb Fix for previous commit
Tried to handle two syntaxes at the same time. Bad idea.
Handling the two different syntaxes separately.
2014-07-29 17:08:24 +02:00
ORelio
e56d504067 Add more syntax compatibility for private messages
Added '[Someone [rank] -> me] message' syntax support
Improvement for fuckofftwice's server with [Donator] tag
2014-07-29 16:59:20 +02:00
ORelio
5cace4e7ff ScriptSheduler improvments
- Add triggerOnInterval feature (every X seconds)
- Fix triggerOnTime triggering scripts only one time
- Update sample task list file
2014-07-29 16:52:23 +02:00
ORelio
47a3cdc783 Revert to CMD icon on exit
Else CMD would still have the player head as icon
2014-07-27 16:43:45 +02:00
ORelio
cb1edcb3b1 Fix MonoAesStream
Padding provider wasn't stored (NullReferenceException)
2014-07-23 15:10:57 +02:00
ORelio
162a1414bf Add ChatBot logging to file and 'log' command
- log <text> will print '[BOT] text' to the console
- logged [BOT] lines can be written to a logfile
- chatbotlogfile INI setting is used to set the log file
2014-07-20 12:02:17 +02:00
ORelio
6f1fcb22ce Use default console icon if no skin is available
If the user has no associated skin, app icon will be used.
2014-07-02 16:04:34 +02:00
ORelio
86efb38fa9 Re-add /reco and /connect when connection is lost 2014-07-01 20:31:47 +02:00
ORelio
cfb313fa01 Several fixes
Fix Alerts bot not displaying several occurences in a row
Fix Script bot not displaying in console what it is performing
Fix IOException not caught when connection is lost
2014-07-01 14:10:29 +02:00
ORelio
d295f3b181 Fix player head setting not being loaded 2014-06-30 14:04:04 +02:00
ORelio
42e706d1a7 Player head as console icon
For Windows only
Idea from TNT-UP
2014-06-30 13:55:51 +02:00
ORelio
168f8c4d99 Fix server list aliases not case insensitive 2014-06-29 14:53:30 +02:00
ORelio
f88fcea59b Server list file support
Works the same way as account list feature
Idea from TNT-UP
2014-06-29 14:49:54 +02:00
ORelio
608eb8059c Unix slashes in file path when using Mono
Bug report by MousePak
2014-06-27 13:26:27 +02:00
ORelio
2907b9c587 Account list file support
Accounts can be stored in a file and used while (re)connecting
+ Check that the server IP is valid (avoid /connect <player>)
+ Fix command prompt not exiting while exiting the server
+ SendChatMessage() -> SendText() method name change
2014-06-19 19:24:03 +02:00
ORelio
36690b8b34 Commands as separate classes
Each command is now in its own class in the 'Commands' namespace, and
loaded through reflection.
2014-06-18 13:32:17 +02:00
ORelio
715bc09872 Add different command handling modes
+ Fix [AppVars] INI section not being processed
+ Fix set var=value command not working properly
See
http://www.minecraftforum.net/topic/1314800-winmaclinux-minecraft-console-client-179/page__st__500#entry32178614
for details about command handling modes.
2014-06-18 00:49:45 +02:00
ORelio
c4c5e2efd9 Chatlog, Message sending fixes
- Fix ChatLog not creating the folder containing log file
- Fix chat prompt not sending regular text messages
2014-06-16 14:23:56 +02:00
ORelio
87d4687394 Add set varname=value MCC command
- Allow to use vars declared in scripts or directly by the user
- Commands my now use %variable% as well
- Moved "help" command from RemoteControl to inner MCC command manager
- The only special command is "wait", which is only available in scripts
Todo: Solve ambiguity between MCC help and Server help commands
Note: Auto accept tpa suggested by MousePak
Note: Manually choosing MC version suggested by ZizzyDizzyMC
2014-06-14 18:48:43 +02:00
ORelio
8b5ce567a6 Add setting for manually choosing MC version
- User can manually provide server version in config file
- Server is not pinged if a minecraft version was manually provided
- If the provided version isn't recognized, ping is re-enabled
2014-06-14 16:01:19 +02:00
ORelio
f0b071ddea Remote Control : Auto accept tpa and tpahere
- Added Essentials teleportation request in bot api
- Used the api in remote control to auto accept
2014-06-14 13:51:30 +02:00
ORelio
9456e82923 Handle all internal MCC commands in one place
- MCC internal commands for command prompt, remote control and scripts
are handled in one place, thus it's no more needed to add them in 3
different places.
- "exit" command in scripts is not equivalent to "/quit"
- removed "disconnect" command in scripts /!\
- bots can now easily perform internal MCC commands.
2014-06-14 13:20:15 +02:00
ORelio
283074bb63 Store server IP and server port in distinct vars
- Change "replaceVars" to "expandVars" (more explicit)
- Store server IP and server port in distinct vars in Settings class
- Add setServerIP setter in Settings which automatically split a
host:port string
- Add %serverip% variable which use the new ServerPort setting
- Fix "text%incompletevarnameatstringend" strings
2014-06-13 16:50:55 +02:00
ORelio
068b87a11a Variable engine done, catch bot exceptions
- %variable% variables can be declared in the INI file and used
elsewhere
- Default argument 'true' for WriteLineFormatted in ConsoleIO
- Exceptions thrown by bots no longer disconnect from the server, stack
trace is printed instead
2014-06-11 20:40:25 +02:00
ORelio
898a04a843 Various fixes
- Re-add support for MC 1.6 chat color names
- Re-add support for MC 1.5- vanilla whispers in ChatBot
- Add /connect in main chat prompt (reported by TNT-UP)
2014-06-03 13:05:53 +02:00
ORelio
84ba8fd0ae Fix special chars in minecraft passwords
Bug report by TNT-UP
2014-06-02 11:21:05 +02:00
ORelio
850ff7ad0b Add timeout for SpigotMC, Fix bot update
- We need to send a MC 1.6 ping first but SpigotMC ignore them
- So a timeout is necessary. Too slow old servers might suffer
- Fix bots not beign updated by Protocol16 (MC 1.4 to 1.6)
2014-05-31 13:47:34 +02:00