Commit graph

156 commits

Author SHA1 Message Date
ZizzyDizzyMC
1abb46b8ca Added / Cleaned Enable features of Chat Messages 2015-09-04 00:00:02 -04:00
ZizzyDizzyMC
b233b60aba Default acceptance of Hero-Chat public messages changed.
Changed from default of disabled to enabled. *True*
2015-09-04 00:00:00 -04:00
BuildTools
35365a4b80 Revert "Revert "Added a new PM regex""
This reverts commit 450cb4c6b9.
2015-09-02 23:01:46 -04:00
BuildTools
450cb4c6b9 Revert "Added a new PM regex"
This reverts commit 88c9605e94.
2015-09-02 23:01:30 -04:00
BuildTools
88c9605e94 Added a new PM regex
Added
[someone @ me] message
so that remote control could be used on more servers.

Added back Hero Chat Messages with a default config option of;
herochatmessagesenabled=false
which safely disables it for everyone and has to be explicitly enabled
for it to goof anything up.
How this happened was me downloading the "source" from minecraft forums
and modifying that source then trying to merge it back to the main
github fork of mine.
2015-09-02 23:01:01 -04:00
ORelio
3e2622fbb7 Various C# Script improvements
Move handling code in a separate file
Add caching ability for low-power devices (rpi..)
Use a distinct API with MCC.MethodName()
Stop script execution only on specific API calls
2015-08-23 18:51:29 +02:00
ORelio
f5a67090c2 Add comments for server IP parsing
Dot is used for determining of the given IP is a server alias or a
direct ip address or domain name. See #83
2015-07-05 20:53:35 +02:00
ORelio
e29b4ee545 Add support for C# script extensions
- Allow defining function for use into the script
- Allow defining a ChatBot for loading it into MCC
- Improve sample script and add more examples
- Todo add new documentation into the readme file
2015-06-21 18:45:43 +02:00
ORelio
3ce91188c7 Add support for C# scripts in scripting bot
- Now scripts can also be written in C#
- C# scripts can access ChatBot API
- Add more methods in ChatBot API
- Add an example of C# script file
- Coding style fixes: method names ucfirst
2015-06-20 22:58:18 +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
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
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
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
ee406b233e Use Trim instead of space deletion 2015-01-27 20:23:59 +01:00
ORelio
dd001e3519 Auto-Tpaccept from everyone
Disabled by default.
Suggested by medxo
2015-01-02 22:10:12 +01:00
Lauchlin
466ad07b71 Using ushort rather than keyword
I'm not so familiar with this syntax.
2014-11-05 02:04:33 +11:00
Lauchlin
b90466447f Use usigned short to cover full range of ports
Each side of a TCP connection has an associated 16-bit unsigned port number (0-65535).  Use an unsigned short rather than a signed short otherwise you'll only get half the ports!
2014-11-05 01:59:32 +11:00
ORelio
ad5897fcb4 Fixed server alias not case insensitive
Bug report by TorchRJ_
2014-09-07 15:20:58 +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
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