Commit Graph

41 Commits

Author SHA1 Message Date
7814e7b1ab update 1.19.2 bot, chat support 2022-11-26 15:58:31 +08:00
64667826d0 go fmt 2022-11-16 23:32:33 +08:00
58ca83157b Player chunk load limiter 2022-06-25 14:14:01 +08:00
60c9d84cf2 Broadcast player chat and system message 2022-06-25 02:36:58 +08:00
6eb5f35c75 A chat.Message can be deserialized from json array. 2022-05-30 11:25:56 +08:00
3c078fc503 Make HoverEvent struct work. 2022-05-29 18:41:02 -02:00
197e37017c Add document for chat.Message.Append() method 2022-04-26 10:12:10 +08:00
ec4eef2331 fix the chat.Message with empty Text and Extra message doesn't contain an empty "text" field after marshaled into json. close #151 2022-03-09 10:46:59 +08:00
23bcf9149a Clean imports 2022-02-20 19:23:41 +08:00
fee2e0c939 Add test for #148 2022-01-22 21:56:09 +08:00
e6c6684c25 fix #148 2022-01-22 21:39:40 +08:00
9b1349a274 Send player join/left message 2021-12-28 17:00:49 +08:00
a11f6410bb Fix chat tests 2021-12-27 11:29:27 +08:00
d8f5f03524 Change chat.Message Append API 2021-12-27 00:27:49 +08:00
19481ab95e ClickEvent and HoverEvent support of /chat package 2021-12-17 01:05:32 +08:00
7cfe5145d2 Enhance support of screens 2021-07-04 12:38:24 +08:00
951bedbb13 Fix tests, changes pk.NBT api 2021-02-28 15:14:52 +08:00
f8b3501b60 Fix other code for compatible with new go-mc/net packet 2021-02-25 20:22:06 +08:00
624fc138ba Fix the circle import 2021-02-18 16:57:11 +08:00
8cc4747f88 Import github.com/Tnze/go-mc/data/lang/en-us by default that the chat.Message.String() will handle Translate Message correctly at any time. 2021-02-18 14:38:29 +08:00
bc9cd93066 Fix some warnings and typos 2021-02-18 14:07:30 +08:00
67806abcdb fix #88 2020-11-30 14:29:15 +08:00
8ff82db3c8 Fix "italic" bug mentioned in #76 2020-09-11 10:32:20 +08:00
e3052668a3 Merge remote-tracking branch 'origin/master' 2020-05-01 10:44:36 +08:00
3257c81a27 expose control sequences function 2020-05-01 10:43:50 +08:00
ebf1d5c2c2 Update languages file. Add two function to chat packet: Append and TranslateMsg 2020-04-12 14:58:44 +08:00
73af09e2ea chat package will not ignore the translate message now, but return the row msg. 2019-08-07 15:23:25 +08:00
ced82a1cab Now we could use package chat to translate in many language.
But you must call chat.SetLanguage now.
(or just import _ "github.com/Tnze/go-mc/data/lang/en-us"
2019-08-06 14:51:48 +08:00
3a6211d180 Chat Message support Encode now,fix test 2019-07-24 03:21:31 +08:00
020b07fef0 Chat Message support Encode now,fix 2019-07-24 03:10:23 +08:00
a91caff32f Chat Message support Encode now 2019-07-24 02:54:36 +08:00
ff7439c28e 修复了§设置的格式不恢复的问题 2019-06-19 02:01:04 +08:00
840e4b1cf8 修正了解析§格式的大小写敏感问题 2019-06-19 01:51:50 +08:00
8c0b0e89ab support old chat format system which based on § 2019-06-19 01:44:21 +08:00
f625f06001 you can use chat.Message.ClearString()
to output the message without ansi color
2019-06-18 17:41:00 +08:00
6feed6f193 chat message support json.Marshal 2019-06-02 20:48:46 +08:00
7e8118e21f PluginMessage event 2019-05-19 11:32:31 +08:00
150a5c6f8c fix chat color error 2019-05-03 19:46:53 +08:00
e3e10e5eee trans README 2019-05-03 09:53:26 +08:00
c74cffcc22 Decode ChatMsg as chat.Message but not pk.String 2019-05-02 12:18:00 +08:00
0d436609ce init 2019-05-01 15:22:42 +08:00