Commit graph

919 commits

Author SHA1 Message Date
ReinforceZwei
c18bff361c
Create bug report GitHub issue form (#1691)
* Issue form
* Create bug report GitHub issue form
2021-07-18 18:46:58 +02: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
Cubik
0ae6c41d6a
Update README-zh-Hans.md (#1611) 2021-06-01 13:01:00 +08: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
ORelio
83521d7cca
Inventory creativedelete: German translation (#1592)
* Add lines to translate in de.ini following #1590
* Apply suggestions from code review
Translation from @Daenges and @cyb3rko
Co-authored-by: Daenges <57369924+Daenges@users.noreply.github.com>
Co-authored-by: Niko Diamadis <niko@cyb3rko.de>
2021-05-16 18:50:11 +02:00
ORelio
dd992dc4ee McClient: Reorganize code regions in .cs file 2021-05-16 11:55:47 +02:00
ORelio
6fe6116831 InvokeOnMainThread: Avoid big lambda functions 2021-05-16 11:48:52 +02:00
ORelio
ecb69bbdfd Add CreativeDelete in ChatBot API (#1590) 2021-05-16 11:26:48 +02:00
ORelio
64123a26a5 Add /inventory creativedelete (#1590) 2021-05-15 20:11:07 +02:00
ORelio
95d6318350 Implement thread-safe ChatBot API (#1510, #1579)
+ Rework task scheduling in chatbots
+ Switch back terrain processing to tasks
2021-05-15 17:36:16 +02:00
ORelio
c1cfaf520d Improve InvokeOnMainThread mechanism
Add documentation to make the invoke mechanism easier to understand
Make it clear in documentation that code is invoked synchronously
Use Action and Func<T> for minimizing the amount of code to write
Use type parameter T to automatically adjust return value type
Throw exceptions on the calling thread, not the main thread
2021-05-15 16:31:02 +02:00
ReinforceZwei
9e5364a4ff
Use a dedicated thread to process world data (#1585)
This change allow low-end devices to join servers without timeout
2021-05-12 20:07:53 +02:00
ReinforceZwei
3b5488a7bf
Remove illegal characters in chat messages before sending (#1587)
Sending illegal character will cause server to kick the client. This happens when using remote control to execute some command that contains color output. Message checking applies to remote control only.
2021-05-12 19:34:55 +02:00
ReinforceZwei
b15c3a8e46
Fix calling schedule task cause deadlock (#1586) 2021-05-12 22:31:06 +08:00
ReinforceZwei
7723ed57ea
Update de.ini (#1584) 2021-05-12 12:41:49 +08:00
ReinforceZwei
f848495243
Implement schedule main thread task with return value (#1579)
* Implement schedule main thread task with return value

* Revert change of TestBot.cs
2021-05-12 12:20:13 +08:00
ReinforceZwei
073458f5f2
Improve inventory command output (#1582)
* Improve inventory command output

* Remove unused code

* Sort item list before printing

* Fix incorrect container slot count

* Update Container.IsHotbar method
2021-05-11 14:02:47 +08:00
ReinforceZwei
1cd7c098c3
Add command for dropping items from inventory (#1581)
* Add command for dropping items from inventory
* Allow other container to be used
2021-05-10 20:27:18 +02:00
ReinforceZwei
f7e74c76c2
Revert change in commit aeba54 2021-05-08 21:10:26 +08:00
ReinforceZwei
a5a8075efb
Add method to schedule main thread task (#1570)
* Add method to schedule main thread task
* ChatBot API: New delay task method
* Add sealed attribute to ChatBot internal method
2021-05-08 15:03:23 +02:00
Daenges
b8ce4d16c4 Add more intuitive link for hardcoding 2021-05-08 11:48:15 +02:00
ReinforceZwei
512d78d307 Remove thread sleep in disconnect method 2021-05-07 22:48:57 +02:00
Daenges
2bf29c06a4
Implement hardcoding the WebhookURL (#1571)
* Implement hardcoding the WebhookURL

* Convert tabs to spaces

* Add comment
2021-05-06 19:53:20 +08:00
ReinforceZwei
0400ad89ac
Add ability to perform clean-up code before quitting (#1561)
* Add ability to perform clean-up code before quitting
* Move to WinAPI namespace
2021-05-01 16:56:31 +02:00
ReinforceZwei
750684e010
ReplayMod: Prevent file backup while saving replay (#1562) 2021-05-01 20:38:41 +08:00
ReinforceZwei
ad14edad2e Add timeout detect on server login 2021-04-30 21:32:37 +02:00
ReinforceZwei
7fd0f9157f
DiscordWebhook: Fix syntax error 2021-04-28 10:37:32 +08:00
ORelio
663d617ef6 OnDisconnect: Call AutoRelog last (#1517)
Call AutoRelog last to leave other bots time to perform cleanup
2021-04-18 18:44:02 +02:00
Daenges
239900451d
Improvements for Discord Webhook (#1544)
* Improve caching and remove unused functions
* Save Player UUID before leaving
Save the UUID when they leave and save it until they join again.
* Clear the cache after disconnect
* Update MinecraftClient/config/ChatBots/DiscordWebhook.cs
2021-04-18 16:14:09 +02:00
ReinforceZwei
92eb4e1457
Update de.ini (#1539) 2021-04-15 22:32:41 +08:00
Daenges
b3bae6c2f8
Add DiscordWebhook ChatBot (#1532)
* Send chatmessages to Discord via webhook.

With corresponding Minecraft skins as profilepicture.

* Support for pings at keywords and server messages.

* Cleanup, Settings Class and applied suggestions.

* Fix all function names

* Improve variable naming and UUID search

* Re-format some comment

* Rename file to DiscordWebhook.cs

* Add message caching and option for disabling UUID lookup

Add Message class
Add Cache class
Change internal Message delivery

* Add an ignore list

Improved help message
Add option to get all settings

* Add feature to deactivat CustomChatDetection

Comment some functions

* Option to unload the bot

Fix crash when not entering a valid ping syntax

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-04-14 10:21:18 +08:00
LesterLian
621e5e2200
Implement Realms support (#1533)
Resolve #51 

* Realms: update to new API; fix HTTP Get

* Realms: suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Realms: suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Add negative number support for JSON parser

* Nice print realms worlds result

* Option to join Realms world with world ID

* Suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Failure handle

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* world id paired with index

* fix text

* Clean up the code a bit

* Add setting for displaying Realms worlds

* Rename Realms worlds setting

* Put messages into translation file

Co-authored-by: Zizhen Lian <zizhlian@umd.edu>
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-04-12 19:46:33 +08:00