Commit graph

136 commits

Author SHA1 Message Date
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
4e65aa88fa Fix 'invalid server IP' when using a server alias
Bug report by TorchRJ_
2014-08-27 17:16:35 +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
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
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
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
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
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
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
49a2d2b681 Add support for %username% on log & task files
- Allows to use different files depending on the username
- Also, added a setting for disabling "beep" sound in Alerts bot
2014-05-10 21:03:03 +02:00
ORelio
22c47e99c2 Add ScriptScheduler bot
- Allow to launch script on various events
- Removed startup script, now part of ScriptScheduler
- ScriptScheduler is configured using its own INI file
- Can launch scripts on first login, login and/or specific time
2014-05-06 22:41:14 +02:00
ORelio
b0e4e993ce Hold on scripts when reconnecting + login 503
- Added "connect" command in scripts (idea from TorchRJ_)
- Handle 503 service unavailable error for Minecraft logins
- Renamed [Scripting] into [StartupScript] (more explicit)
- Startup Script only runs once even using /reco but ...
- Scripts are now kept and resumed when (re)connecting
2014-04-10 16:13:30 +02:00
ORelio
cd2fe152e6 Added chat timestamps feature
Idea from LehmusFIN
2014-04-09 18:52:17 +02:00
ORelio
d972378f0e Added remote control bot
A bot that can perform operations using /tell commands!
Available commands: exit, reco, script, send.
Closes #7 :)
2014-04-03 00:17:47 +02:00
ORelio
fc281889c6 Move bot owners to ini settings
- Bot owners now specified directly in the INI file
- Owners list is now in Settings.cs and not in Hangman bot
- Allow other bots to access owner list
2014-04-02 23:25:28 +02:00
ORelio
a481640306 Remove legacy command-line args & xauth bot
- Use scripting instead of xauth bot
- Use ini files instead of bot:botname args
2014-04-02 22:53:46 +02:00
ORelio
08bd0e6b4a Swap app and user names in default window title
More relevant as that's what other apps do.
2014-03-26 15:42:36 +01:00
ORelio
eef5e92af5 Setting for choosing the language to use
- Download the appropriate language file regarding the language setting
- Stores language files in the "lang" subfolder
2014-02-01 14:57:31 +01:00
ORelio
c6e44041d2 Use Minecraft 1.7.4's en_GB object from assets
- en_GB.lang is not downloaded for Minecraft 1.7.4 and above
- try to use MC 1.7.4's en_GB object (works only if 1.7.4 is installed)
2014-01-17 20:39:55 +01:00
ORelio
a627842bed Username in window title using %username%
- No window title is set if 'consoletitle' setting is not set
- Lowercase %username% will be replaced by the user's name
2014-01-17 19:54:10 +01:00
ORelio
ed3079091b Add AntiAFK command setting (see pull request #18)
- AntiAFK command can be customized through INI file
- Clearer WriteDefaultSettings() function
2014-01-17 19:20:41 +01:00
ORelio
fa6aa107c8 Fixed username added several times with autorelog
- If using autorelog bot, " - Username" was added each time the app was
restarting
- To fix this, added a ConsoleTitle setting which is re-used when
restarting
2014-01-16 19:33:48 +01:00
ORelio
c826dd3b79 Automatically download en_GB.lang from Mojang
- Removed en_US.lang checking since it does not exist anymore in assets
- If Minecraft 1.6+ is not installed, download en_GB.lang from Mojang's
servers
2014-01-13 12:38:01 +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
ORelio
6beb5588ce Find automatically a translation file from MC 1.7+
Load a translation file if Minecraft is installed on the computer
2014-01-06 18:12:24 +01:00
ORelio
b42a400582 Use language from /.minecraft/assets
If the language file is not found but file
%appdata%/.minecraft/assets/en_US.lang exists, use it instead.
2013-08-12 15:05:36 +02:00
ORelio
ff950a5248 Last minute changes for 1.6.0 + Changes from #13
- Some last minute changes made just before releasing 1.6.0 to Minecraft
Forums
- Added changes from pull #13 allowing to remove the BouncyCastle
library
2013-08-12 13:06:07 +02:00
ORelio
df4a9cd7b7 Added Settings class & Settings file
- All settings are moved in a new Settings class
- Settings can be loaded by parsing an INI file
- A default INI file is generated with default settings
- By default, loads MinecraftClient.ini if no command-line arguments are
used
- Another INI file can be loaded with MinecraftClient.exe MyFile.ini
- All the config files can be renamed or moved, just edit the INI file
- A title for the console window can be specified in the INI file
- Regular command-line arguments still works but will probably be
simplified in the future.
- Smal code optimizations and adjustments
2013-08-06 16:11:46 +02:00