Commit graph

120 commits

Author SHA1 Message Date
ORelio
b0c8f82697 Add simple movements with /move command
- Determine if we can move to the specified direction
 - Add moving ability to the specified direction
 - Add /move command for triggering moves
 - Add move decomp. into steps (more natural)
 - Add pathfinding routines (still WIP)
 - SO YES YOU CAN NOW WALK USING MCC!!!
2015-12-12 16:48:38 +01:00
ORelio
cb00c28b6e Add world handling (and fall to ground)
- World is now properly parsed and stored from chunk data
- Block changes are also handled and world updated accordingly
- Added ground checking, the player will move down to reach the ground
- Performance tweaking in Protocol18, using lists instead of arrays
- Fix player look not properly skipped causing invalid location after
teleport
2015-11-30 15:30:49 +01:00
ORelio
72bd485e67 Add basic location handling
- Retrieve player location from the server
- Send back player location from the server
- Requires that a specific setting is enabled
- Should allow items to be picked up by the player
- May also trigger some anti chead plugins
2015-11-27 17:16:37 +01:00
ORelio
5038c3d475 Add regex settings for parsing chat messages
Allows user-defined regexes to be used instead of built-in chat
detection routines for matching messages on server using a non-standard
chat format. Built-in detection routines can be disabled using a single
setting, based on a contribution by ZizzyDizzyMC.
2015-10-22 22:17:15 +02:00
ORelio
29975da627 Merge onlyforlogin and enabled in proxy settings
The 'enabled' setting can now be set to 'login' for enabling proxy only
for logging in to the Minecraft account, and then connect to the server
directly without proxy. Useful when Minecraft login is blocked on some
network, but not Minecraft servers (port 25565) (original idea and
enhancement by ZizzyDizzyMC)
2015-10-22 20:56:08 +02:00
ORelio
a5bf62bc94 Merge pull request #99 from ZizzyDizzyMC/Indev
Ability to use proxy only for minecraft login
2015-10-18 18:04:50 +02:00
ZizzyDizzyMC
a65e632522 Fixed some things about pull request 99.
Changed LoginOnlyProxy to OnlyForLogin in settings, changed McTcpClient
so I was not using assignment operator. (Was a mistake anyway.)
2015-10-16 04:50:56 -04:00
ZizzyDizzyMC
0b870e2b49 Proxy Setting addition.
Added 'loginonlyproxy' option with true / false boolean options.
on 'true' only the minecraft login is redirected to the proxy.
Otherwise both the login and the server connection are routed though the
chosen proxy.

Provides a semi-workaround to issues #89 and #80 on ORelio/Indev
2015-10-15 21:20:29 -04:00
ORelio
4df5cb724a Fix copy and past mistake with XPBar setting
#95
2015-09-30 20:24:00 +02:00
ORelio
8bd130eb3a Add setting for hiding system/xpbar messages
Add settings for disabling:
- System Messages
- XP Bar Messages
Fix #95
2015-09-29 14:07:11 +02:00
ORelio
8560753949 Extend BrandInfo setting
Brand Information tells the server what client is being used to connect
to the server, possible values are the following:

- none (do not tell anything)
- vanilla (tells that you are using MC vanilla)
- mcc (tell that you are using MCC + version)

This will usually not do anything unless plugins developers use this
information for developing some MCC interoperability eg more chat
interactions instead of using GUIs. This could also be used to block
third party clients, that's why brand information can be disabled or
changed to vanilla.
2015-09-29 14:03:33 +02:00
ZizzyDizzyMC
1223c91d79 Added setting to make sending brand info optional.
sendbrandinfo=true|false was added so we can optionally send client
info.  Enabled by default.
Added sendbrandinfo into auto-generated ini file.
Edited Protocol18.cs to reflect this with an "if" statement before
SendBrandInfo() is called upon.

Fixed minor mistake of not adding chatbotmessages into Parsemode.
Parsemode.Default was being used.
2015-09-04 09:54:38 -04:00
ZizzyDizzyMC
385a1f99b1 Added another setting.
Added
vanillaandfactionsmessages setting that enables / disables detection of
vanilla / factions public chat messages.
Setting has been added to the auto-generated MinecraftClient.ini and has
been commented with respective chat format of "<user> message" and
"<*faction user>: message"
Clause added to ChatBot.cs that makes use of the new setting.
2015-09-04 09:16:28 -04:00
ZizzyDizzyMC
93aae2d467 Commented Auto-Generated MinecraftClient.ini
Added example chat format in the ini comments.
Further cleaning up my own mistakes as well.

Note: I'm learning still. Getting better AND fast though.
2015-09-04 00:15:02 -04:00
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