2015-04-01 17:38:14 +02:00
|
|
|
"""
|
|
|
|
A modern, Python3-compatible, well-documented library for communicating
|
|
|
|
with a MineCraft server.
|
|
|
|
"""
|
2016-03-05 08:28:14 +01:00
|
|
|
|
2017-08-03 20:08:36 +02:00
|
|
|
__version__ = "0.5.0"
|
2016-03-05 08:28:14 +01:00
|
|
|
|
2016-03-07 03:40:25 +01:00
|
|
|
SUPPORTED_MINECRAFT_VERSIONS = {
|
2017-08-03 19:31:00 +02:00
|
|
|
'1.8': 47,
|
|
|
|
'1.8.1': 47,
|
|
|
|
'1.8.2': 47,
|
|
|
|
'1.8.3': 47,
|
|
|
|
'1.8.4': 47,
|
|
|
|
'1.8.5': 47,
|
|
|
|
'1.8.6': 47,
|
|
|
|
'1.8.7': 47,
|
|
|
|
'1.8.8': 47,
|
2018-01-13 02:03:04 +01:00
|
|
|
'1.8.9': 47,
|
2017-08-03 19:31:00 +02:00
|
|
|
'1.9': 107,
|
|
|
|
'1.9.1': 108,
|
|
|
|
'1.9.2': 109,
|
|
|
|
'1.9.3': 110,
|
|
|
|
'1.9.4': 110,
|
|
|
|
'1.10': 210,
|
|
|
|
'1.10.1': 210,
|
|
|
|
'1.10.2': 210,
|
|
|
|
'16w32a': 301,
|
|
|
|
'16w32b': 302,
|
|
|
|
'16w33a': 303,
|
|
|
|
'16w35a': 304,
|
|
|
|
'16w36a': 305,
|
|
|
|
'16w38a': 306,
|
|
|
|
'16w39a': 307,
|
|
|
|
'16w39b': 308,
|
|
|
|
'16w39c': 309,
|
|
|
|
'16w40a': 310,
|
|
|
|
'16w41a': 311,
|
|
|
|
'16w42a': 312,
|
|
|
|
'16w43a': 313,
|
|
|
|
'16w44a': 313,
|
|
|
|
'1.11-pre1': 314,
|
|
|
|
'1.11': 315,
|
|
|
|
'16w50a': 316,
|
|
|
|
'1.11.1': 316,
|
|
|
|
'1.11.2': 316,
|
|
|
|
'17w06a': 317,
|
|
|
|
'17w13a': 318,
|
|
|
|
'17w13b': 319,
|
|
|
|
'17w14a': 320,
|
|
|
|
'17w15a': 321,
|
|
|
|
'17w16a': 322,
|
|
|
|
'17w16b': 323,
|
|
|
|
'17w17a': 324,
|
|
|
|
'17w17b': 325,
|
|
|
|
'17w18a': 326,
|
|
|
|
'17w18b': 327,
|
|
|
|
'1.12-pre1': 328,
|
|
|
|
'1.12-pre2': 329,
|
|
|
|
'1.12-pre3': 330,
|
|
|
|
'1.12-pre4': 331,
|
|
|
|
'1.12-pre5': 332,
|
|
|
|
'1.12-pre6': 333,
|
|
|
|
'1.12-pre7': 334,
|
|
|
|
'1.12': 335,
|
|
|
|
'17w31a': 336,
|
|
|
|
'1.12.1-pre1': 337,
|
2017-08-03 19:48:36 +02:00
|
|
|
'1.12.1': 338,
|
2017-09-20 00:30:51 +02:00
|
|
|
'1.12.2-pre1': 339,
|
|
|
|
'1.12.2-pre2': 339,
|
|
|
|
'1.12.2': 340,
|
2018-01-13 02:03:04 +01:00
|
|
|
'17w43a': 341,
|
|
|
|
'17w43b': 342,
|
|
|
|
'17w45a': 343,
|
|
|
|
'17w45b': 344,
|
|
|
|
'17w46a': 345,
|
|
|
|
'17w47a': 346,
|
|
|
|
'17w47b': 347,
|
|
|
|
'17w48a': 348,
|
|
|
|
'17w49a': 349,
|
|
|
|
'17w49b': 350,
|
|
|
|
'17w50a': 351,
|
|
|
|
'18w01a': 352,
|
|
|
|
'18w02a': 353,
|
2018-05-19 19:04:48 +02:00
|
|
|
'18w03a': 354,
|
|
|
|
'18w03b': 355,
|
|
|
|
'18w05a': 356,
|
|
|
|
'18w06a': 357,
|
|
|
|
'18w07a': 358,
|
|
|
|
'18w07b': 359,
|
|
|
|
'18w07c': 360,
|
|
|
|
'18w08a': 361,
|
|
|
|
'18w08b': 362,
|
|
|
|
'18w09a': 363,
|
|
|
|
'18w10a': 364,
|
|
|
|
'18w10b': 365,
|
|
|
|
'18w10c': 366,
|
|
|
|
'18w10d': 367,
|
|
|
|
'18w11a': 368,
|
|
|
|
'18w14a': 369,
|
|
|
|
'18w14b': 370,
|
|
|
|
'18w15a': 371,
|
|
|
|
'18w16a': 372,
|
|
|
|
'18w19a': 373,
|
|
|
|
'18w19b': 374,
|
|
|
|
'18w20a': 375,
|
|
|
|
'18w20b': 376,
|
|
|
|
'18w20c': 377,
|
2018-05-24 13:59:06 +02:00
|
|
|
'18w21a': 378,
|
2018-05-25 20:35:32 +02:00
|
|
|
'18w21b': 379,
|
2018-06-05 02:13:51 +02:00
|
|
|
'18w22a': 380,
|
|
|
|
'18w22b': 381,
|
|
|
|
'18w22c': 382,
|
|
|
|
'1.13-pre1': 383,
|
2018-06-20 10:48:28 +02:00
|
|
|
'1.13-pre2': 384,
|
2016-03-07 03:40:25 +01:00
|
|
|
}
|
2016-06-17 02:06:15 +02:00
|
|
|
|
2018-01-08 00:56:31 +01:00
|
|
|
SUPPORTED_PROTOCOL_VERSIONS = \
|
|
|
|
sorted(set(SUPPORTED_MINECRAFT_VERSIONS.values()))
|