Commit graph

865 commits

Author SHA1 Message Date
Daenges
095c9cf137
Fix quote detection in /setrnd (#1915)
* Fix quote detection in /setrnd
Before the function crashed when entering quoted strings.
* Fix indentation
* Fix out of array error
2022-01-24 16:15:44 +01:00
Daenges
bbe000b640
Fix /move crash and /setrnd (#1914)
* Fix /move crash
* Fix substring cutting in SetRnd
2022-01-23 21:31:44 +01:00
goldenlib
223db4af6a
Add French translation (#1896)
Also minor imprivements to English translation
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2022-01-16 11:43:57 +01:00
Daenges
95378dca8e
Automatic sugar cane farming (#1882)
* Automatic sugar cane farming

Inspired by #1871 I wrote a script to farm a field of sugar cane fully autonomous.

* Implement suggestions

* Remove unused comment

* Remove comment and improve return value
2022-01-04 22:34:09 +08:00
Daenges
dd3fd3c9d2
Add "-f" to the /move command (#1874) 2021-12-29 22:34:40 +08:00
ORelio
259ef80cf9 Inventory: Select foreground container (#1875)
When several containers are open "/inventory container" will select
the container with highest ID (i.e. foreground container)
2021-12-28 11:15:11 +01:00
ReinforceZwei
25248025c2 Fix hyperlink in chat message cause crash
See #1850
2021-12-24 11:57:27 +08:00
Archer57
2858e0cbb7
Added docker-compose configuration (#1855)
* Fixed some spelling and typing mistakes

* Added docker-compose configuration

* Added docker-compose description to the user manual

* changed the default path of the mapped volume to a relative path
2021-12-19 11:49:02 +08:00
Archer57
5a56ae65b2
Fixed some spelling and typing mistakes (#1852) 2021-12-17 12:13:03 +08:00
ReinforceZwei
04d83bf277 SessionCache: Add backward compatibility for old session file 2021-12-17 09:29:24 +08:00
ReinforceZwei
4b8ca158a8
Microsoft Sign-in: Add refresh token support (#1838) 2021-12-16 15:53:31 +08:00
ReinforceZwei
e68a51dcff Move parseCommandLine method to command class 2021-12-15 21:25:24 +08:00
Daenges
381b8ea7d1
Add setrnd command (#1846)
* Add setrnd command

* Make rand private

* Add console-like argument behaviour

* Remove unused using declarations

* Add german and english translations

* Improve translation, Add notice to config README, Add check wheather arguments are provided

* Add some comments

* Remove typo

* Add %player% constant to setrnd

* Remove test variable and add comments

* Remove typo

* Reverse changes

* Remove translations
2021-12-15 18:51:16 +08:00
ReinforceZwei
333358c73b
Fix respawn packet (#1848) 2021-12-11 21:06:17 +08:00
ReinforceZwei
bdcf3e5aa2
Update version to 1.18.1 (#1845) 2021-12-10 22:15:00 +08:00
ReinforceZwei
fdc3069083
Microsoft Sign-in: Migrate to our own client Id (#1827)
* Microsoft Sign-in: Migrate to our own client Id

- Drop support of "mcc" sign-in method
- Add nuget packages for decoding JWT

* Remove JWT nuget package

* Remove client secret

It is not needed after changing application type in Azure

* Change token validation method to expiration time

* Revert changes of dropping mcc sign-in method

* Add email pre-fill for browser sign-in
2021-12-04 19:15:58 +08:00
ReinforceZwei
9a9245f193
Update version to 1.18 (#1836) 2021-12-02 21:07:57 +08:00
ORelio
1d1bd69eb2 Spectator-Teleport: Add MC version check (#1825)
Feature not supported by Minecraft 1.7, only 1.8+
2021-11-18 17:42:31 +01:00
xXjojaXx
76a10c0cd8
Spectator-Teleport Implementation (#1825) 2021-11-18 00:33:52 +08:00
Daenges
4ba09754de
Add logging of color codes (#1811) 2021-10-30 11:40:58 +08:00
Daenges
6928cd40fd
Add toggle to head movement while walking (#1805)
* Add toggle to head movement while walking

* correct typo

* Correcting the correcting

* Improve description.

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-10-29 12:45:30 +08:00
ORelio
8de7618027 Update README and URLs
Moving to a GitHub organization!
2021-10-10 20:56:39 +02:00
ORelio
bb4c13168b Mojang Login: Enable TLS 1.2 (#1780)
Enable TLS 1.2 which is disabled by default on .NET 4.0
See also: #1783
2021-10-05 22:09:48 +02:00
ReinforceZwei
eba309191c WebRequest: Enable TLS 1.2
Fix #1774
Temporary fix. May not work if .NET Framework 4.6+ missing
2021-10-01 14:32:34 +08:00
ORelio
981dd51a9b Add inline documentation and warnings in config (#1764)
...as documentation may not be included/redistributed with MCC.
2021-09-19 15:31:39 +02:00
Daenges
a05e89cf58
Addition to MojangAPI.cs (#1714)
* Add skin handling to MojangAPI.cs

* Add new skin requests and improve commenting

* Update UUID hash method to detect default player skin
according to https://github.com/ORelio/Minecraft-Console-Client/pull/1714#issuecomment-894751307

* Add custom return types

* Add ServiceStatus enum for the mojang services
2021-08-13 14:27:53 +08:00
ORelio
ab3f624336
Readme: Mono certificates: Add help from #1708
Mozroots is not longer used for newer Mono versions
2021-08-06 11:35:45 +02:00
Daenges
6a361ed674
Integration of the Mojang API (#1709)
* Add Mojang API integration

* Addition in MinecraftClient.csproj

* Move Mojang API to Protocol namespace

* Add changes of MinecraftClient.csproj

* Add rate limit warning

* Improve rate limit warning
2021-08-06 14:25:46 +08:00
Daenges
b3b9a26288
Add script for excavating cubes (#1677)
* Add MineCube.cs

* Clear unused comments and using directives

* Move the command to a chatbot class

* Set a maximum sleep time for block mining

* Add tool selection function

* Improve the block - tool detection

* Improve naming and comments

* Add missing blocktypes

* Add block-tool assertion and tool switching in hotbar

* Remove unused using declaratives and improve coordinate handling

* Move Material2Tool in the Mapping folder

* Add function to let the bot mine up to 5 blocks above its head

* Remove obsolete function to detect breakability

* Implement mineup command
Users can dig out a 2 high square manually. The client will walk through it
mining everything that is reachable above, while avoiding falling blocks and liquids.

* Refactor big parts of the code
Move the function for obtaining cubes to a seperate file.
Sort Unbreakables alphabetically.
Change the distance to wait in the mine function back to 2.

* Fix suggestions from review
Change several parts of the code according to the review
Add credits

* Convert the bot into a script file and move it to config folder
Adjust the script to be loadable with /script
Remove unnecessary code
Add public modifier to material2tool

* Add checking for lava and water for normal mining

* Remove MineCube.cs from chatbots

* Code re-format

Rename variables
Fix indentation

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-08-03 13:25:43 +08:00
ReinforceZwei
349a3de8e4
Update translation file indexes web URL to the latest (#1698) 2021-07-25 20:10:37 +08:00
ReinforceZwei
982f358bf3 ResourcePackSend: Add URL checking for invalid resource pack 2021-07-10 19:28:39 +08:00
ReinforceZwei
581095e03e ResorecePackSend: Attempt to resolve #1667 2021-07-08 14:22:27 +08:00
ReinforceZwei
029762e0a9
Update to 1.17.1 (#1672) 2021-07-08 14:10:54 +08:00
Рома Данилов
48577bf034
More events (#1660)
* + OnBlockBreakAnimation

* + OnBlockBreakAnimation

* + OnEntityAnimation

* Add checks

* + OnBlockChange

* + OnMultiBlockChange

* Fix

* Fix

* Fix

* add summary

* Fix

* fix other summary
2021-07-04 14:26:41 +08:00
Cubik
c0f128f632
Add Chinese Localization (#1651)
* Update README-zh-Hans.md

* Create zh.ini

* Translate [mcc]

* Update zh.ini

* Update zh.ini

* Update zh.ini

* Update zh.ini

Basically localized comments and text

* Update zh.ini

Some translation and format errors have been corrected

* Update zh.ini

Fixed word order problem

* Update zh.ini

Fixed all problems

* Rename zh.ini to zh-CHS.ini

* Fix wrong translations and add missing translations

Co-authored-by: WUTONK <wjt474696120@gmail.com>
2021-06-24 09:30:13 +08:00
ORelio
e90e7b6b2c
Update user manual 2021-06-18 21:03:00 +02:00
ORelio
1f2137c985 ResourcePackSend: Fix 1.17 regression (#1637)
New fields in 1.17 were also read for older versions
2021-06-17 22:46:03 +02:00
ReinforceZwei
4577deee61 Create Russian translation file (#1635)
Translated by @iwixw
2021-06-16 21:06:03 +08:00
ORelio
39b7d878dd Handle negative value in server ping (#1626) 2021-06-11 23:11:32 +02:00
alex-huff
8bd221c248
Add support for 1.17 (#1630)
* fix caps

* implement 1.17 without terrain

* properly switch order of Tracking Position and Locked for 1.17

* Update MinecraftClient/Protocol/Handlers/PacketTypesIn.cs

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-06-11 21:45:33 +08:00
Daenges
83e61f04b7
Delete unnecessary Mail.cs (#1619)
This file was created for test reasons and never worked properly. With the implementation of the Mailer.cs chat bot this file became completely obsolete and is currently wasting unnecessary disk space.
2021-06-03 20:55:11 +08:00
Daenges
061b71befc Prevent errors from OnPlayerLeave() returning NULL
I suffered from some errors when I started the script. I soon found out, that the client detects some players leaving and I was wondering why, because there was not even a leaving message. I soon found out that the errors came from OnPlayerLeave() which returned a UUID but the name parameter was NULL. I don't know whether this is a bug in the client, but this should fix it for the script.
2021-06-02 23:11:36 +02:00
alex-huff
6b29c97a05 fix caps 2021-06-01 09:08:30 +02:00
Daenges
5281bc140c
Fix pinging system in DiscordWebhook.cs (#1610)
* Check if ping already exists to avoid crashes.
* Remove bug where multiple words are not pinged
2021-05-31 18:54:04 +02:00
ORelio
f16e9e87dd Add support for inventory layout as ASCII art (#906)
Inventory art mostly made by Mhowser
TODO: Implement remaining inventory types
2021-05-29 15:21:38 +02:00
ORelio
b9935ab8fa AutoRespond: Support for per-match cooldown (#593)
Prevent a match from triggering too often using a cooldown
By default, matches do not have a cooldown (it's opt-in)
Also add translation support and more debug messages
2021-05-22 15:27:28 +02:00
ORelio
e6b2b87366 Prevent infinite loop in StartEncryption (#1150) 2021-05-22 11:21:21 +02:00
ORelio
172e25fef0 Parse settings from the command line (#1578)
Allow specifying any setting as --setting=value
Sections other than main: --section.setting=value
Previous positional arguments are still supported
Update user manual with quick usage and examples
2021-05-20 21:40:57 +02:00
ORelio
9af9fe78ee Realms: Allow direct server ID, handle invalid ID (#1533) 2021-05-20 19:09:41 +02:00
ReinforceZwei
8efb8d80a4 Reamls worlds: Use expired property to determine available world 2021-05-17 16:53:38 +08:00