Commit graph

294 commits

Author SHA1 Message Date
ORelio
b3c9a20f16 Fix AutoRespond not handling "other" message type
Bug report by ibspa
2015-10-13 00:31:24 +02:00
ORelio
8f6b59eaa0 Add help section for AutoRelog 2015-10-11 19:55:26 +02:00
ORelio
4df5cb724a Fix copy and past mistake with XPBar setting
#95
2015-09-30 20:24:00 +02:00
ORelio
b25a665c82 Delay BrandInfo sending
Implement Game Join event and send Brand Info only when server
acknowledged game join, as ZizzyDizzyMC did before, else server may
generate an invalid packet error because it was still in "login" mode
and not in "playing" mode. Fix second issue in #95
2015-09-30 20:01:57 +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
ORelio
fe68e881fb Merge pull request #94 from ZizzyDizzyMC/Indev
Mistake fixing +
2015-09-04 18:04:46 +00: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
ORelio
d9a916b409 Merge pull request #93 from ZizzyDizzyMC/Indev
Add [Username @ me] private message format and add settings for enabling chat formats
2015-09-04 06:32:21 +00: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
ZizzyDizzyMC
cdec34d5ca I messed up and put the herochat *back* into a faulty position.
Removed my mistake and updated the location of the
Hero_Chat_Messages_Enabled clause that keeps it disabled unless needed.
2015-09-03 23:59:57 -04:00
ZizzyDizzyMC
60c95a6625 Added /.vs/ to git ignore.
Adding /.vs/ to git ignore for Visual Studio 2015
Removed folder.
2015-09-03 23:59:55 -04:00
ZizzyDizzyMC
6ed17f5f98 Removal of .suo 2015-09-03 23:58:38 -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
ca02c7f2e6 Merge pull request #92 from Pokechu22/send-brand-info
Send MC|Brand information upon joining the game
2015-08-23 18:08:57 +02:00
Pokechu22
9fefcb40ef Send MC|Brand information upon joining the game 2015-08-22 14:26:56 -07:00
ORelio
344749ead2 Add 'accepted' response pour resource packs
An 'accepted' response is sent by vanilla minecraft before sending
'successfully loaded', so let's do the same thing here. See #91
2015-08-21 17:22:09 +02:00
ORelio
a0683e1c46 Add '/' as valid separator for detecting 1.8 proxies
Should work with "Requires 1.7/1.8 (protocol v4)"
server info, reported by Yoann166.
2015-08-21 17:16:31 +02:00
ORelio
c1d2cbd84c Merge branch 'Indev' of https://github.com/ORelio/Minecraft-Console-Client into Indev 2015-08-21 16:56:51 +02:00
ORelio
86711adba8 Fake resource pack acceptance
Some server requires that players install a resource pack, and will kick
them if they doesn't. With this new feature MCC will automatically respond
"successfully loaded" for every "resource pack send" packet it receives.
Suggested by Yoann166 in issue #91
2015-08-21 16:54:24 +02:00
ORelio
ebc4d9fc62 Merge pull request #90 from Pokechu22/password-unicode-fix
Fixed issues with passwords containing unicode special characters, such as "Ð".
2015-08-17 22:08:06 +02:00
Pokechu22
295dfe717e Fixed issues with passwords containing unicode special characters.
The main fix is the change to ProtocolHandler's jsonEncode method.  Previously,
it used 'char.IsLetterOrDigit' to see if it needed to be escaped, but some
chars, such as "Ð", count as a letter but still need to be escaped.  The fix is
to check if it's in the right range, rather than using that method.

There's also some changes to those methods for performance and clarity reasons.
Most of this is using a StringBuilder rather than appending to the string.  Not
too important, but it makes things clearer.
2015-08-17 11:11:09 -07:00
ORelio
de4322458a Add 'other' messages support in AutoRespond 2015-08-02 12:20:51 +02:00
ORelio
12b94996c7 Add joshbean39's chat formats 2015-07-31 12:23:13 +02:00
ORelio
67f17cbb3e Remove packet debugging code 2015-07-30 17:32:42 +02:00
ORelio
3a760240e4 Move 1.7 handling into 1.8 handler
Minecraft 1.7 handler was pretty similar
to 1.8 handler and lacking some features
such as packet prefetching.
2015-07-30 16:47:58 +02:00
ORelio
729960d4a3 Add 1.8.8 as supported version 2015-07-30 12:37:29 +02:00
ORelio
80b44228f8 Further autocompletion fixes
Refactor code as splitting is now useless
2015-07-23 21:39:41 +02:00
ORelio
c88d150976 Fix Offline BungeeCord 1.5.2 requiring encryption
Vanilla minecraft encryption can be unofficially bypassed on pre-1.7
minecraft when connecting to offline-mode servers (now it IS officially
bypassed in offline mode in 1.7+), but BungeeCord 1.5.2 requires
encryption even in offline-mode, so enable encryption even in
offline-mode. Bug report by xp9kus.
2015-07-23 21:38:58 +02:00
ORelio
1e801ad415 Fix tab autocompletion when no result is found
When no result is found, tab-complete result should be ignored. Bug
report by c0dei.
2015-07-21 16:46:41 +02:00
ORelio
546119a334 Fix ] password typing on QWERTY keyboards
Oem6 key was incorrectly ignored. Fix #47
2015-07-17 23:00:45 +02:00
ORelio
a6a9814163 MC 1.7: Skip potential extra data in tab-list items
See issue #84 for more info
2015-07-07 22:43:27 +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
f076e1f512 Add argument passing for C# scripts
script files with spaces in filename will need double quotes when
calling them eg /script "my script.txt" instead of /script my script.txt
2015-06-25 12:12:59 +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
a6b3bf0481 AutoRespond tests and fixes
- Automatically add [BotName] tags to log lines
- Fix case handling and actionPrivate used for public messages
- Add a sample file for basic and regex matches
2015-06-21 16:40:13 +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
3224c59eab Remove padding mechanism
Not needed anymore since proper encryption is now used under Mono
2015-06-19 19:40:18 +02:00
ORelio
67affc6270 Fix 1.7+ server list ping by properly parsing Json
Separate Json and ChatParser classes
Use Json parser for retrieving Json fields
Will avoid wrong "name" field from being used
2015-06-19 19:29:23 +02:00
ORelio
a7f0897f09 Add 1.8.5 - 1.8.7 as supported versions
+ Improve wording: answer -> respon[d|se]
2015-06-19 18:42:24 +02:00
ORelio
c957ed0efd Remove invalid disconnect packet (2)
Forgot to apply the same change to Protocol17, see #45
2015-06-16 10:59:18 +02:00
ORelio
365af032ad Remove invalid disconnect packet
... use TCP connection closing instead. See #45
2015-06-14 21:43:24 +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
840ac01dc5 Fix crash on empty player list updates
Player list updates on MC 1.8 handler did not take into account the
amount of items in the list and were only processing the first item,
including when there wasn't any item to process. Unfortunately some
weird servers were sending useless empty tab-list updates, causing a
crash. Should fix issue #78 and forum posts 1267, 1269, 1284. Thanks
dbear20, link3321, gerik43, Darkaegis, k3ldon and Ryan6578 for their bug
reports! :)
2015-06-03 12:00:25 +02:00