Commit graph

31 commits

Author SHA1 Message Date
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
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
Lauchlin
284d335b2a Update short to ushort 2014-11-05 02:05:33 +11: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
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
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
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
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
c8332eb845 Add 'exit on failure' setting
- Automatically close on connection lost or other failure
- Feature suggested by TorchRJ_
- Also, forgot to mention in 'App refactoring almost done' :
- Issue depending on username and/or server should be fixed
2014-05-31 12:56:54 +02:00
ORelio
d2ec2f48b7 App refactoring almost done
- Created specific namespaces and folders for each app brick
- Added proxy support using Starksoft's Biko Library
- App bricks: Main, ChatBots, Crypto, Protocol, Proxy
- Each class is now in its own file (Aes streams, chatbots)
- Used "Bridge" design pattern for Crypto, Protocol, Proxy
- Added back support for Minecraft 1.4.6 to 1.6.4 (MCC 1.6.2)
- Need to fully re-test everything and fix bugs
- To Fix : Server pinging is slow on SpigotMC
- To Do : Add Minecraft 1.2.5 (MCC 1.3) and maybe 1.3 to 1.4.5
2014-05-31 01:59:03 +02:00
ORelio
09bff17fc2 Allow AutoRelog to relog on server login failed
- Add some explanations for adding a custom bot in the app
- Remove debug code in ConsoleIO (see previous commit)
2014-05-04 11:25:51 +02:00
ORelio
a543620a80 Fix null characters in chat prompt (old bug)
Sometimes null characters were inserted in chat prompt
Rename "Scripting" bot into "Script" bot.
2014-04-10 19:55:16 +02:00
Max Gurela
e49260bbbb Minor spelling mistake
Noticed it while starting the client, got on my nerves fairly quickly.
2014-03-11 08:14:58 -06:00
ORelio
afff1ef89e Fix for respawning + /respawn command
- Player is automatically respawned when logging in
- Added /respawn command (MC 1.7 does not fail to respawn)
- Cleaned MCC command handling code, /exec is now /script
2014-01-12 13:38:52 +01:00
ORelio
30cbc85850 Online Mode done, 1.7 compatibility should be OK
+ Fixed chat colors because of 1.7 changes
+ Some code cleanup here and there
2014-01-09 23:28:41 +01:00
ORelio
0b9a7f4ba6 Offline mode done, TODO: online mode
Offline mode should be working now.
2014-01-08 23:58:49 +01:00
bearbear12345
6340feaa52 + Made MCC commands ignore case.
+ Started executing script when called with "/exec <scriptname>"
2013-11-04 19:48:29 +11:00
ORelio
84b8b9da2a GUI API for tab-complete
Allow the GUI to pass a request to the console client, not to the
server.
Any string starting with a null character is handled by the console:
Command is: \0commandname\0commandarg
Output from console: \0commandname\0result
eg. \0autocomplete\0/he -> \0autocomplete\0/help
Currently, only "autocomplete" command is implemented.
2013-08-18 18:26:20 +02:00
ORelio
d1770ebb02 Added respawn ability in /reco
- Added a notification message when you die stating you can respawn with
/reco
- Added a respawn packet sent before disconnecting when using /reco

Note: Why a respawn in /reco and not a /respawn command?  Once respawned
using the console on 1.6.2 server, the player stays invisible for other
players unless he (or the other player) disconnects & reconnect so it's
necessary to reconnect after respawning.
2013-08-06 11:28:27 +02:00
ORelio
2d174f81c0 Rewrite Scripting bot respecting the Bot API + Code Optimization
Do NOT put thread sleeps in bots. NEVER. Initialize() and Update() are
called in the main thread!
Also, a delay should be respected between each chat/command sendind to
avoid being kicked.
Putting Thread.Sleep() in bots may cause the client to be out of sync
with the server or make it lose connection so again do not use them :)
2013-07-20 12:58:41 +02:00
bearbear12345
7e70494f23 Script Works? 2013-07-20 11:01:49 +10:00
ORelio
e6f2ef4e4f Added MCC Source Code v1.5.2
Minecraft Console Client is now on GitHub!
2013-07-18 09:27:19 +02:00