2a528b4afb
SetupWizard: stop depending on Java gamemode IDs for option selection
2023-09-08 16:15:07 +01:00
999eab0c84
SetupWizard: use Server constants directly
2023-09-08 15:43:36 +01:00
33a0fb9061
SetupWizard: clean up crusty code that loads server.properties 3 times
2023-09-08 15:14:51 +01:00
904b0acfff
SetupWizard: replace hardcoded config keys
2023-09-08 15:11:59 +01:00
7ce33d9375
Migrate final remaining EnumTrait users to native enums
2023-09-08 10:34:12 +01:00
7bcc663b60
Migrate core code to using symfony/filesystem
...
webmozart/path-util is retained for plugin compatibility, but is dropped in 5.0
2022-10-14 21:51:29 +01:00
38d6284671
Use PHP-CS-Fixer to enforce file header presence
2022-06-04 17:34:49 +01:00
8e767da29e
Modernize some final remaining private property declarations
2022-05-17 21:55:57 +01:00
4e956d5d1d
Replace remaining disallowed operators
2022-01-20 19:23:19 +00:00
6494375a53
SetupWizard: ask for max view distance
2021-12-15 03:15:04 +00:00
3aa34b59a5
Ask for IPv6 port in setup wizard
2021-12-15 02:22:04 +00:00
79b5109953
Move some configuration constants to .. well .. constants
2021-12-15 01:40:29 +00:00
a41404bd8a
Allow gamemode strings for gamemode property in server.properties ( #4638 )
...
closes #2692
2021-12-14 22:56:22 +00:00
269231c228
Ban foreach(arrayWithStringKeys as k => v)
...
this is not as good as phpstan/phpstan-src#769 (e.g. array_key_first()/array_key_last() aren't covered by this, nor is array_rand()) but it does eliminate the most infuriating cases where this usually crops up.
2021-11-15 22:52:05 +00:00
2293bd948d
Added KnownTranslationFactory and use it in as many places as possible
...
this makes translation usage much more statically analysable.
The only places this isn't used are:
- places that prefix translations with colours (those are still a problem)
- places where server/client translations don't match (e.g. gameMode.changed accepts different parameters in vanilla than in PM)
2021-08-10 14:50:40 +01:00
94e16f416d
Added KnownTranslationKeys (generated) and start using it
2021-06-29 22:46:04 +01:00
32d7b1e6af
Start using webmozart/pathutil for joining paths ( #4287 )
2021-06-29 19:40:43 +01:00
902ea515f7
Separate ID handling from GameMode
...
the aliases of 0,1,2,3 remain for user-interface level compatibility.
2021-06-27 20:32:35 +01:00
b032d49722
Merge branch 'stable'
2021-03-28 19:41:23 +01:00
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
2645b19617
Convert VersionInfo into a final class
...
this allows it to be loaded by the autoloader without additional changes.
2020-07-25 19:00:48 +01:00
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
6d24760174
Merge branch 'stable'
2019-10-20 21:25:39 +01:00
51ed564c5e
SetupWizard: remove non-obvious dependencies on dynamic constants, require path in constructor
2019-08-25 16:46:01 +01:00
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00
cbc64462e6
New directory structure. More powerful startup scripts
2014-03-08 04:41:43 +01:00
a54d33957e
Added multiple comments and info
2014-03-06 18:52:23 +01:00
18443c0cd7
Reformatted code
2014-03-06 17:17:45 +01:00
c08bf3ef86
Removed code remove comments
2014-03-06 13:16:44 +01:00
42ae544d0d
Used namespacer tool
2014-03-06 05:47:00 +01:00
ee53e21159
small fixes
2014-03-06 03:03:42 +01:00
5ea31b57ce
First step to namespaces
2014-03-05 23:43:16 +01:00
23b8fc32ff
removed DocBlock header for logo
2014-03-05 11:15:47 +01:00
3864630bcd
New PMF level (uses NBT Entity and TileEntity)
2014-02-26 17:15:31 +01:00
7bdc48509e
things
2014-02-19 17:41:12 +01:00
f1b5f83fd4
Lots of typos fixed, undefined variables, unused code
2014-02-19 01:55:42 +01:00