112 Commits

Author SHA1 Message Date
Dylan K. Taylor
7469f28f24 Server: rename getPlayer() to getPlayerByPrefix()
closes #3910

the existing naming was misleading, and many plugin devs assumed that it returns an exact match. However, this is not guaranteed, and it's possible for two different players to match the same prefix.

- There is no defined behaviour for what happens when multiple players can equally match a prefix (e.g. 'fr' could match 'fred' or 'frog' equally, because the name lengths are the same)
- A prefix might match a different player at a different time (e.g. 'fr' could match 'freddie' before 'fred' joins, after which it will match 'fred' instead)

With these flaws in mind, it's better to break compatibility on this to make the intent more clear, and to make plugin developers reassess their usages of this method. In most non-command use cases, they should likely be using getPlayerExact() instead.
2020-11-14 15:49:41 +00:00
Dylan K. Taylor
04b038ff4b [ci skip] more detail to PM4 changelog 2020-11-12 21:34:12 +00:00
Dylan K. Taylor
d08c9ee634 Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	resources/vanilla
#	src/pocketmine/VersionInfo.php
2020-11-10 22:44:59 +00:00
Dylan K. Taylor
e8b6b56330 Release 3.15.4 2020-11-10 16:48:18 +00:00
Dylan K. Taylor
1d02829d6f [ci skip] more detail for World API changes on PM4 2020-11-09 14:01:27 +00:00
Dylan K. Taylor
3bf87378ef Merge branch 'stable'
# Conflicts:
#	resources/vanilla
#	src/pocketmine/VersionInfo.php
#	src/pocketmine/level/LevelTimings.php
2020-11-08 19:44:30 +00:00
Dylan K. Taylor
fa920aa868 Misplaced the changelog AGAIN 2020-11-08 19:25:55 +00:00
Dylan K. Taylor
bd78d0bff8 Player: added getItemCooldownExpiry() 2020-11-03 14:11:28 +00:00
Stephen B
ddc0f137e7
changelog: VanillaEffects -> VanillaEnchantments (#3884) [ci skip] 2020-10-27 21:51:55 +00:00
Dylan K. Taylor
587a4c0095 non-exhaustive updates to changelog [ci skip] 2020-10-27 19:35:03 +00:00
Dylan K. Taylor
44e446b621 Merge remote-tracking branch 'origin/stable' into master
# Conflicts:
#	build/php
#	composer.lock
#	phpstan.neon.dist
#	resources/vanilla
#	src/pocketmine/Server.php
#	src/pocketmine/VersionInfo.php
#	src/pocketmine/entity/Entity.php
#	src/pocketmine/lang/locale
#	src/utils/Timezone.php
#	tests/phpstan/bootstrap.php
#	tests/phpstan/configs/custom-leveldb.neon
2020-10-13 17:51:49 +01:00
Dylan K. Taylor
d7a66ad755 Release 3.15.2 2020-10-06 13:33:42 +01:00
Dylan K. Taylor
0aee39027e Merge branch 'stable' into master
# Conflicts:
#	composer.lock
#	resources/vanilla
#	src/entity/Living.php
#	src/pocketmine/Player.php
#	src/pocketmine/VersionInfo.php
#	src/pocketmine/block/Potato.php
#	src/pocketmine/block/Sugarcane.php
#	src/pocketmine/entity/Entity.php
#	src/pocketmine/item/Item.php
#	src/pocketmine/level/format/Chunk.php
#	src/pocketmine/level/format/io/leveldb/LevelDB.php
#	src/world/generator/GeneratorRegisterTask.php
#	tests/phpstan/configs/check-explicit-mixed-baseline.neon
#	tests/phpstan/configs/l7-baseline.neon
#	tests/phpstan/configs/l8-baseline.neon
#	tests/plugins/TesterPlugin/src/pmmp/TesterPlugin/tests/AsyncTaskMainLoggerTest.php
#	tests/plugins/TesterPlugin/src/pmmp/TesterPlugin/tests/AsyncTaskMemoryLeakTest.php
#	tests/plugins/TesterPlugin/src/pmmp/TesterPlugin/tests/AsyncTaskPublishProgressRaceTest.php
2020-09-04 01:43:52 +01:00
Dylan K. Taylor
9f60484212 Release 3.15.1 2020-09-03 15:09:52 +01:00
Dylan K. Taylor
a35ca1fa71 Merge branch 'stable' into master 2020-08-15 20:32:14 +01:00
Dylan K. Taylor
4b9712fdee fixed changelog typo 2020-08-11 21:37:15 +01:00
Dylan K. Taylor
a498b0415a Release 3.15.0 2020-08-11 21:26:12 +01:00
Dylan K. Taylor
a7fc245291 Release 3.14.3 2020-08-11 21:06:38 +01:00
Dylan K. Taylor
977f9ec497 Merge branch 'stable'
# Conflicts:
#	composer.lock
#	resources/vanilla
#	src/VersionInfo.php
#	src/pocketmine/block/Podzol.php
2020-07-21 11:57:24 +01:00
Dylan K. Taylor
7ff6e5895e added missing 3.14.2 changelog 2020-07-13 11:55:08 +01:00
Dylan K. Taylor
da798817b5 Merge branch 'stable'
# Conflicts:
#	changelogs/3.14.md
#	resources/vanilla
#	src/VersionInfo.php
#	src/entity/Attribute.php
2020-07-08 11:46:02 +01:00
Dylan K. Taylor
2751c59979 Release 3.14.1 2020-07-08 10:32:07 +01:00
Dylan K. Taylor
5aefdda942 Merge commit 'c616d9bb7c1335f84808bed9c8eef183ad163679'
# Conflicts:
#	resources/vanilla
#	src/VersionInfo.php
2020-06-26 19:19:54 +01:00
Dylan K. Taylor
461bc94236 Release 3.14.0 2020-06-26 14:19:02 +01:00
Dylan K. Taylor
81051441ba Release 3.13.1 2020-06-26 12:31:56 +01:00
Dylan K. Taylor
2a9498a4f9 Merge commit 'a90132a30'
# Conflicts:
#	resources/vanilla
2020-06-13 11:22:18 +01:00
Dylan K. Taylor
a90132a30e added missing 3.12.6 changelog 2020-06-04 20:38:06 +01:00
Dylan K. Taylor
b58c425189 Merge branch 'next-minor'
# Conflicts:
#	changelogs/3.12.md
#	resources/vanilla
#	src/VersionInfo.php
2020-06-03 13:11:30 +01:00
Dylan K. Taylor
c864647cd1 Merge branch 'stable' into next-minor 2020-06-03 13:04:08 +01:00
Dylan K. Taylor
c32026333f Release 3.12.5 2020-06-03 10:59:33 +01:00
Dylan K. Taylor
d36b24c518 Release 3.12.4 2020-06-02 18:40:33 +01:00
Dylan K. Taylor
5c63e06b0f piece together a changelog for release 2020-06-01 14:57:27 +01:00
Dylan K. Taylor
e87e974323 Release 3.12.3 2020-06-01 13:18:28 +01:00
Dylan K. Taylor
ba0dcdb722 Merge commit '71a8b0340c303a4d2c024ad5a0a558c5e52694e7'
# Conflicts:
#	resources/vanilla
2020-05-18 20:18:47 +01:00
Twisted
8f5db7c297
3.12.2 changelog typo (#3505) 2020-05-18 12:26:07 +01:00
Dylan K. Taylor
a91e895781 Merge branch 'next-minor'
# Conflicts:
#	resources/vanilla
#	src/VersionInfo.php
2020-05-18 10:54:39 +01:00
Dylan K. Taylor
9b6b3f50a1 Release 3.12.2 2020-05-18 10:17:02 +01:00
Dylan K. Taylor
bbc249ff0d Merge branch 'next-minor'
# Conflicts:
#	composer.lock
#	resources/vanilla
#	src/VersionInfo.php
2020-05-13 13:54:29 +01:00
Dylan K. Taylor
ded45bddfe Release 3.12.1 2020-05-13 13:10:10 +01:00
Dylan K. Taylor
9bfc1df486 Merge branch 'stable' 2020-04-18 13:19:31 +01:00
Dylan K. Taylor
35be36961d Merge tag '3.11.7' 2020-04-18 11:29:47 +01:00
Dylan K. Taylor
77d45bf116 Release 3.12.0 2020-04-17 18:39:15 +01:00
Dylan K. Taylor
3aa58f54dc Release 3.11.7 2020-04-14 02:54:40 +01:00
Dylan K. Taylor
8a770d837e Merge branch 'stable' 2020-02-24 20:32:43 +00:00
Dylan K. Taylor
778814a35e changelog: fix typo 2020-02-24 20:18:47 +00:00
Dylan K. Taylor
cb9e79b398 Release 3.11.6 2020-02-21 19:18:48 +00:00
Dylan K. Taylor
e1eb9186fe Merge branch 'stable' 2020-02-03 19:57:21 +00:00
Dylan K. Taylor
13e4772f98 Release 3.11.5 2020-02-02 18:31:51 +00:00
Dylan K. Taylor
757f5b2fbf Merge branch 'stable' 2020-01-20 18:12:58 +00:00
Dylan K. Taylor
13f28d8454 Release 3.11.4 2020-01-20 18:06:46 +00:00