60 Commits

Author SHA1 Message Date
Dylan K. Taylor
584810780a Moved projectile-related classes to their own namespace 2017-10-19 12:27:44 +01:00
Dylan K. Taylor
a4ca3f1d1c Updated PocketMine-Language submodule 2017-10-18 21:08:39 +01:00
Dylan K. Taylor
f783789e5a fixed escape code unescaping in language files, close #1474 2017-10-18 20:43:35 +01:00
Dylan K. Taylor
f6e30d4225 s/online-mode/xbox-auth/
lots of servers are currently running in insecure mode without realizing because of old Genisys shit configs?!
2017-09-30 12:19:24 +01:00
Dylan K. Taylor
91c6086ae1 Updated PocketMine-Language submodule 2017-09-26 09:35:43 +01:00
Dylan K. Taylor
03d3e595d6 Implement JWT signature verification and Xbox Live checks, close #315
This can be enabled or disabled using the "online-mode" directive in
server.properties.

NOTE: For safety reasons it is enabled by default, since many naive server owners currently believe that authentication is not needed because "the client is forced to sign-in".
Newsflash for readers: the forced authentication is easily bypassed using a LAN proxy.

Un-authenticated LAN connections will still work fine if the online mode is disabled.

Added the following API methods:
- Server->getOnlineMode() : bool
- Server->requiresAuthentication() : bool
- Player->isAuthenticated() : bool

JWT verification is rather expensive, so it is done in an AsyncTask. Make sure you don't hog your worker threads.
2017-09-25 12:30:58 +01:00
Dylan K. Taylor
8ca59d12e9 Updated PocketMine-Language submodule 2017-09-25 11:36:39 +01:00
Dylan K. Taylor
5d75d3d5b6 Merge branch 'php/7.0' into mcpe-1.2 2017-09-01 23:10:58 +01:00
Dylan K. Taylor
c81b76cbf6 Make plugin load errors more descriptive 2017-09-01 18:52:55 +01:00
Dylan K. Taylor
6e8631347d Added capability to specify compatible protocol versions in plugin.yml (#1247)
Protocol-dependent plugins may specify the `mcpe-protocol` attribute in plugin.yml to disallow plugin loading when the protocol changes.
2017-09-01 17:57:40 +01:00
Dylan K. Taylor
1e539c4e3b fix some 1.2 translation issues, close pmmp/PocketMine-Language#19 2017-08-09 21:40:20 +01:00
Dylan K. Taylor
dbb92096e4 More typehints, documentation fixes and static analysis cleanup 2017-07-15 12:12:06 +01:00
Dylan K. Taylor
c3b8be3f60 and more typehints 2017-07-14 10:56:51 +01:00
Dylan K. Taylor
2a7b736f18 Heap of bugfixes, cleanup and PHP 7 upgrades 2017-07-13 19:18:56 +01:00
Dylan K. Taylor
4d874e7e78 static analysis 2017-07-13 16:45:24 +01:00
Dylan K. Taylor
51b0673b4b Bite the bullet and enable strict types on everything 2017-06-07 12:53:16 +01:00
Dylan K. Taylor
6ef132e468 Updated PocketMine-Language submodule 2017-04-27 11:50:17 +01:00
Dylan K. Taylor
d264a04db4 Added detection for recursive server aliases (#424)
* Added detection for recursive server aliases, close #423

* Oops
2017-03-13 20:43:34 +00:00
Dylan K. Taylor
4ee8d14584 Added API for transferring players to other servers (#355)
* Added API method `Player->transfer()` and PlayerTransferEvent
2017-03-04 18:22:31 +00:00
Dylan K. Taylor
11e0387e19 Show an error if no language files found during setup, mitigates #380 2017-02-25 11:21:32 +00:00
Dylan K. Taylor
89216c3bd4 Use parse_ini_file instead of home-grown solution (#366)
* Use parse_ini_file instead of home-grown solution

* Updated PocketMine-Language submodule
2017-02-19 15:53:22 +00:00
Dylan K. Taylor
f2f51a88e5 Updated PocketMine-Language submodule (again) 2017-02-15 17:55:55 +00:00
Dylan K. Taylor
f8b9a13440 Updated PocketMine-Language submodule 2017-02-15 16:06:02 +00:00
Dylan K. Taylor
5c281c6435 Merged #103 2017-02-15 14:58:41 +00:00
Dylan K. Taylor
2d5567d9dd Removed InstallerLang mess, language improvements, updated PocketMine-Language submodule 2017-02-15 14:44:12 +00:00
Dylan K. Taylor
06c399fa05 Get MainLogger directly, in case translations are needed without a running server 2017-01-31 17:21:21 +00:00
Dylan K. Taylor
bd722bb85f fix misplaced doc 2016-12-15 09:22:51 +00:00
SOFe
175dd0efa6 PhpStorm inspections
Fixed some minor bugs and dropped some obsolete code

pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
SOFe
3b7377370c Critical error upon missing submodules (#77)
* Critical error upon missing SPL

* Added checks for RakLib and PocketMine-Language

* It actually throws ClassNotFoundException, not simply returns false :(

Should I blame :shoghi:?
2016-11-06 11:46:39 +08:00
SOFe
58ff381557 PhpStorm automated formatting (#11)
* PhpStorm reformatting

* Tuned PhpStorm reformatting

* Improved ItemIds and BlockIds formatting

* Tuned more PhpStorm reformatting

* Improved string concatenation
2016-10-03 19:05:48 +08:00
Dylan K. Taylor
7c41aa66f1 Update submodules 2016-10-01 15:49:25 +01:00
dktapps
378c3d7994 Patch %0 client translation exploit 2016-09-30 19:19:44 +01:00
PEMapModder
754ff9b4c4 Fixes #3223 2016-04-04 17:59:23 +08:00
Intyre
9f481fbdbe
Merge branch 'patch-12' of https://github.com/PEMapModder/PocketMine-MP into PEMapModder-patch-12 2015-12-20 00:40:52 +01:00
PEMapModder
6ae0f3c8d8 Cleaner (and maybe faster) INI parsing 2015-10-31 20:31:24 +08:00
Shoghi Cervantes
99df6f8edc Updated language 2015-08-13 09:17:43 +02:00
Shoghi Cervantes
f093a6498d Added base enchantment adding utilities, /enchant command 2015-08-08 16:03:04 +02:00
Shoghi Cervantes
e9c981b586 Updated lang 2015-08-07 16:28:49 +02:00
Shoghi Cervantes
7705d8c52f
Updated translations 2015-05-16 15:49:08 +02:00
Shoghi Cervantes
c2f72ea9ac
Updated languages 2015-04-19 11:50:30 +02:00
Shoghi Cervantes
6ee3a7b8d7 Updated languages 2015-04-14 18:28:57 +02:00
Shoghi Cervantes
31387ff0be Added localized invalid name message 2015-04-13 11:36:15 +02:00
Shoghi Cervantes
928660d59a
Updated languages 2015-04-13 00:25:39 +02:00
Shoghi Cervantes
05a9ad57bd
Fixed BaseLang->get() 2015-04-12 12:41:38 +02:00
Shoghi Cervantes
ba226d03c3
Added more translations 2015-04-12 12:27:55 +02:00
Shoghi Cervantes
e9963b603d
Fixed #2864, closes #2864 2015-04-12 12:17:53 +02:00
Shoghi Cervantes
e2bae92df8
Updated language files and command descriptions 2015-04-12 00:59:12 +02:00
Shoghi Cervantes
6504047292
New translations, fixed multiplayer.player.leave 2015-04-11 18:19:28 +02:00
Shoghi Cervantes
d1006de421
Added fallback to BaseLang, better use by plugins 2015-04-11 16:15:45 +02:00
Shoghi Cervantes
3cf42b558c
Fixed language selection 2015-04-11 15:37:44 +02:00