Commit graph

850 commits

Author SHA1 Message Date
ReinforceZwei
71eb1dca17
Implement browser sign-in method (#1447)
* Implement browser sign-in method

* Handle empty link

* Improve

* Handle user cancel login
2021-02-06 09:29:14 +08:00
ReinforceZwei
424f514be2 Update issue template 2021-02-05 19:41:30 +01:00
ReinforceZwei
d19764869c
Fix player inventory being deleted by server (#1430)
* Fix auto drop crash

* Fix player inventory being deleted by server
2021-01-31 08:25:04 +08:00
ORelio
f5f1a22b93 Add sample-script-random-command (#972, #1117) 2021-01-30 23:41:24 +01:00
ReinforceZwei
38a890f840
Implement new logger (#1426)
* Implement multi-channel logger

* Implement chat filter

* Improve a bit

* Improvement

* Add debug message filter and filter mode

* Avoid duplicate debug prefix string

Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2021-01-29 07:45:18 +08:00
ReinforceZwei
939c8fb383
Fix crash on unknown packet IDs on some Forge servers (#1422)
* Fix unknown packet ID cause crash (#1419)
* Ignore unknown packet ID only if forge enabled
2021-01-18 20:12:53 +01:00
ReinforceZwei
0cbe543c30
Update to MC version 1.16.5 (#1417)
* Update to MC version 1.16.5

* Remove comments about protocol number
2021-01-16 21:33:40 +08:00
ReinforceZwei
f20abb6fbc
Imporve auto-craft mechanism (#1415)
Fix #1414
2021-01-15 20:25:23 +08:00
ReinforceZwei
106acab66f
Impove MS authentication error feedback (#1410)
* Impove MS authentication error feedback

* Modify old error message

* Improve 2FA error message

Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2021-01-14 12:24:51 +08:00
ReinforceZwei
7cbf677e0c Fix compile error (#1397) 2021-01-07 14:38:51 +08:00
ReinforceZwei
c04c597aba
Implement Microsoft account login (#1397)
* Implement Microsoft account login
* Create proxied web request class
* Whole bunch of code that doesn't work
* I finally FIXED IT
It took me 2 hours to resolve the problem
* Fill the missed method summary
* Remove some unused code
* Revert http version
* Remove JSON parsing bug workaround
Not needed anymore as per e06438b582
* Remove comment asking about clientID
Client ID is used for session token refreshes. Random UUID without hyphens
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2021-01-06 21:14:51 +01:00
ReinforceZwei
479f80ccf1 Fix #1393 2020-12-31 13:49:24 +01:00
ORelio
e06438b582 Json parsing fixes
Fix parsing empty arrays and objects containing spaces
See ORelio/Sharp-Tools#1 for more details
2020-12-24 14:32:25 +01:00
ORelio
8aee0cb731
Fix Entity Z not correctly shown (2nd fix #1370) 2020-12-12 22:48:21 +01:00
ORelio
372c59cdbc
Fix Entity location Z not correctly shown (#1370) 2020-12-07 19:01:32 +01:00
Рома Данилов
1c0826a045
Add QIWI OnDonation Optional ChatBot Script (#1360)
* Create QIWIDonation
* Rename QIWIDonation to QIWIDonation.cs
* Update QIWIDonation.cs
* Using double not float
* Add Check type
* Update QIWIDonation.cs
* Rename QIWIDonation.cs to QIWIAPI.cs
* Update QIWIAPI.cs
* Update QIWIAPI.cs
* Update QIWIAPI.cs
2020-12-06 13:07:32 +01:00
Рома Данилов
69c300cf5f
Update VkMessager add Example (#1354)
* Update VkMessager.cs
* Update VkMessager.cs
* Move summary above the ChatBot
* Add minimal working example
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-12-05 14:34:33 +01:00
ReinforceZwei
09800eab31 Add AutoTree ChatBot script
This script is made to work with Minecraft auto-tree machine.
2020-12-05 14:26:25 +01:00
ORelio
aee09d9f52 Add TCP read timeout to server ping
See #1321, #1348, #1357
2020-12-05 14:24:41 +01:00
ReinforceZwei
53bd56100f
1.16+ Terrain and Movement support (#1353)
* First implementation
* Improve chunk reading performance
* Fix indentation
* Remove debug information
* Update MultiBlockChange packet
* Move skip varint to a method
* Fix crash when not using block palette
* Fix DataTypes.cs not compiling on .NET 4.0
Binary (0b) values not handled so converted to Hexadecimal (0x)
* Use the 1.16 chunk parsing code for 1.15 too
Document the differences in padding and factor the code
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-11-28 20:48:35 +01:00
ReinforceZwei
9b5fde0689
Enable TCP Read Timeout (#1348)
Fix attempt for #1321
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-11-27 22:17:51 +01:00
ORelio
20f6375153 Merge #1332 and #1333
Add optional arguments to DigBlock()
2020-11-14 10:19:55 +01:00
Рома Данилов
2eba2149b7
VkMessagercs: New Methods and VK API version update (#1319)
* New Methods and VK API version update
* Update VkMessager.cs
* Update VkMessager.cs
* Fix code indenting
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-11-08 23:49:19 +01:00
mexiscool
28f47cc532
Adds support for villager trading (#1316)
* adds villager trading support
Adds handler for tradeList packet and selectTrade packet
* added extra line at end
* removed tab; removed size and hasSecondItem
removed a mistakenly added tab instead of 4 spaces. SelectTrade was already added in 1.13. Removed unnecessary size and hasSecondItem from trade dataType.
* Added VillagerInfo class and capitalized vars in Trade class
* Update VillagerInfo.cs
* Small formatting/naming adjustments
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-11-08 23:39:07 +01:00
ORelio
2a7f0c7f16
Mention sample-script-with-chatbot in Readme
This helps debugging chat message detection
2020-11-05 20:13:52 +01:00
ORelio
330dda9c15 Add random demay in AutoRelog
Useful when reconnecting many accounts at once
Related issues: #663, #740, #975, #1312
2020-11-04 19:23:46 +01:00
DanisDGK
bea5161d6f
Add support for 1.16.4 (#1311) 2020-11-03 19:04:34 +01:00
ReinforceZwei
0c3f774c07 Fix interact entity not being correctly implemented 1.16+ 2020-11-02 19:01:23 +01:00
ORelio
d3ea597dd1 Fix compile error (#1298, #1302) 2020-10-30 22:50:48 +01:00
ORelio
b86444b2a6
README file: Add links to INI files 2020-10-30 20:41:35 +01:00
ReinforceZwei
ce389b6b31
Fix null reference when trying to get protocol version (#1298)
* Fix null reference when trying to get protocol version
* Use only stored version of protocolversion
(No need to add a switch because the protocol version will not change between InitializeClient() calls)
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-10-30 20:35:03 +01:00
ReinforceZwei
ec9f999857
Add Mode switching command for AutoDrop (#1293)
* Add new command for AutoDrop
* Minor imporvement for AutoDrop
* Fix inventory update event passed a non-exist inventory ID
* Minor improvement for AutoDrop
2020-10-25 17:43:05 +01:00
ORelio
9169036893 Implement global chat message cooldown (#661)
Merge 'splitmessagedelay' and 'botmessagedelay' settings into
a single 'messagecooldown' entry, implement global cooldown to
fix autorespond, scripts and commands not being delayed properly.
2020-10-24 17:49:18 +02:00
ORelio
73ba2d1555
Improve markdown formatting of user manual 2020-10-22 23:11:56 +02:00
ReinforceZwei
7ed02df51c
Add information about translation to README (#1282)
* Add information about translation to README
* Add link to list of language names
2020-10-18 13:19:21 +02:00
ORelio
d3f150ba12 Allow force-enabling Forge support for 1.13+ (#1184)
Skip login step and join even when forge info is missing in server info.
However, this only works for 1.13+. Server info retrieval is required
for enabling Forge support on older Minecraft versions.
2020-10-18 13:09:49 +02:00
ORelio
9df255dd29 Add sample script with task (#1281)
This script shows how to run code periodically without using a thread.
2020-10-18 12:05:44 +02:00
ReinforceZwei
2017d5d652
Add support of language files (#1273)
* Basic support of language file
Only mapped main part of MCC.
* Translations function imporve
* Change translation file naming
* Fix default translation file naming
* Complete translation file mapping for main part
Command and ChatBot not done yet
* Complete translation mapping for commands
Except Entitycmd
* Complete translation mapping for ChatBots
* Add new method for replacing translation key
Just for Entitycmd. Be proud of yourself. We have a convenient method now.
* Complete all translation mapping
* Add default config and translation file to resource
* Remove untranslatable messages from default translation file
2020-10-17 13:41:31 +02:00
Amber Alex
0c88c18ea0
Change color of "feature not handled" from gray to red (#1265)
Changing the color for the "terrain/inventories/entities not handled for that version" message from gray to red.
2020-09-26 16:09:34 +02:00
ORelio
a38c9dd000
Add OreMiner.cs
Script by ReinforceZwei from #1254
2020-09-19 12:16:15 +02:00
ReinforceZwei
837340dc51 Fix Auto Relog not applying delay
Also change all debug log to use new method
2020-09-17 20:52:49 +02:00
ReinforceZwei
c97f6f1945 Fix mistake made in upgrading 1.16.3 2020-09-14 19:05:45 +02:00
ORelio
b1233ace7c Perform arm animation when breaking blocks (#1254) 2020-09-13 16:33:25 +02:00
ReinforceZwei
9bfb2bf6c7 Update supported version to 1.16.3
Nothing got changed in 1.16.3
2020-09-11 23:00:48 +02:00
ReinforceZwei
7e20e409a8
Add support for creating replay mod capture files (#1246)
* Add test replay handler
* Fix incorrect built raw packet
* Fix incorrect built raw packet
* Add filter
* Add not working zip lib
* Add dotNetZip lib and complete basic function
* Update ReplayHandler.cs
* Complete Replay handler
Without client player handling
* Complete replay mod
- New ChatBot OnNetworkPacket event
* Add auto-backup and command for Replay Mod
* Add ReplayMod description to readme
* Small naming changes, fix compile error on .NET4.0
* ReplayHandler slight optimizations
Use Path.Combine to automatically use Windows '\' or Linux '/'
Move re-usable common parts outside the Replay handler
Small optimizations in building JSON strings
Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
2020-09-06 21:51:42 +02:00
ReinforceZwei
cd1badb9d6
Add item moving helper class (#1243)
* Create item moving helper class
* Change the method calling order for joined game
 Dispatch bot after things are initialized such as inventories
* Add GetItemMovingHelper ChatBot method
2020-08-29 17:53:29 +02:00
Рома Данилов
de9dcd6d77
Latency improve (#1244)
* Update ChatBot.cs
* Update McClient.cs
* Update ChatBot.cs
* Update ChatBot.cs
* Update McClient.cs
2020-08-29 14:46:04 +02:00
Рома Данилов
02e294e3e8
Fix entity handling crash (#1241)
Fix #1237
* Fix crash
* Update Entity.cs
* Update Entitycmd.cs
* Update McClient.cs
2020-08-27 19:33:45 +02:00
ReinforceZwei
2649e61a88 Fix 1.13 packet palette duplicated packet type 2020-08-27 19:33:08 +02:00
ReinforceZwei
3434d95b81
Add packet palettes (#1236)
* Add packet type palette
* Fix
* test new palette
* Fix 1.16.2 palette
* Add packet ID dumper
* Add document
* Update naming
* Delete old implementation of packet type
* Rename PacketTypeHandler to PacketType18Handler
* Fix packet type namespace
* Add dump to file method for packet type
* Rename packet palette version number
* Replace unknown packet type to explicit type name
Prevent duplicated key while creating reverse mapping
* Include packets ID in packet palette
Add packet palette helper class
* Remove packet ID dumper methods
As packets ID are included in source code now
2020-08-26 19:19:59 +02:00