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
ae612b913e
Fixed config type detection, fixed configs being saved empty
...
Fixes LegendOfMCPE/EssentialsPE#354
When the config file didn't exist, no type detection was performed. This resulted in the case statement for Config->save() falling through and not writing anything to the file.
2017-06-27 16:44:05 +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
f3ab45e7d5
Merged in 1.0.6 changes, added autogenerated data for 1.1.0.3 (doesn't work yet) and deliberately made the same merge error as Mojang
2017-04-14 13:00:43 +01:00
Dylan K. Taylor
0c35c16727
Fix some doc comments
2017-02-06 14:50:05 +00:00
Dylan K. Taylor
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
dktapps
23e4ca64e4
Remove dupe load() causing reload debug spam
...
This call is completely redundant.
2016-10-10 14:10:37 +01: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
PEMapModder
085ff56362
Clearer Config::__construct() documentation.
2016-03-21 14:41:49 +08:00
Intyre
a43db5ca25
fixed #4006
2016-02-28 22:54:56 +01:00
PEMapModder
ccadb5f2bb
Merge pull request #3526 from PEMapModder/patch-9
...
Fixed getNested() using cache desynchroinized from set()
2016-02-28 23:10:12 +08:00
PEMapModder
a3ad5783b7
Fixed getNested() using cache desynchroinized from set()
2015-09-26 12:21:43 +08:00
Shoghi Cervantes
0bcf639a98
Changed how exceptions work and are logged, throw proper exceptions on tasks
2015-09-18 12:03:24 +02:00
Shoghi Cervantes
3ffdb8e552
Removed @deprecated classes, methods and properties, added some type hints
2015-09-12 17:10:11 +02:00
Shoghi Cervantes
e137ac4c56
Base PHP7 work to make it "run" - READ NEXT LINES!
...
All plugins will need to bump the API if they want to use this.
NOTE THAT THIS IS NOT THE FINAL API 2.0.0 AND THAT THERE WILL BE MORE CHANGES.
To start updating, you might also want to read https://secure.php.net/manual/en/migration70.php and specifically https://secure.php.net/manual/en/migration70.incompatible.php
To compile PHP7 with some of the required dependencies, use https://gist.github.com/shoghicp/166ab26ce5cc7a390f45
ONLY LINUX IS TESTED, DO NOT ASK FOR OTHER PLATFORMS!
----- THIS VERSION IS NOT SUPPORTED -----
This version WILL crash randomly in unexpected places due to PHP7, pthreads, PocketMine or cosmic rays.
Handle with care, and store under direct sunlight for the best performance.
2015-09-10 21:29:29 +02:00
Shoghi Cervantes
3bb037204e
light population is now optional via pocketmine.yml
2015-05-28 23:39:09 +02:00
Shoghi Cervantes
149234f125
Added asynchronous file writing
2015-05-22 16:32:08 +02:00
Shoghi Cervantes
7754aa71a3
Fixed end of regex on Config
2015-04-29 21:09:35 +02:00
Shoghi Cervantes
488fbc27fe
Fixed issue reading/writing YAML
2015-04-27 21:26:50 +02:00
PEMapModder
2add19a4c8
Added paramter types for some Config.php functions
2015-04-17 16:32:40 +08:00
Shoghi Cervantes
93a50d08e7
Merge branch 'master' into mcpe-0.11
2015-03-22 02:20:32 +01:00
Michael Yoo
91a26c15dd
Utils\Config preserves document type between reloads. Fixes #2777
2015-03-21 21:35:57 +10:30
Shoghi Cervantes
add380c7ed
A few fixes!
2015-03-21 00:45:29 +01:00
Shoghi Cervantes
99ad65ba44
Catch file saving exceptions
2015-02-15 20:01:47 +01:00
Shoghi Cervantes
1f9cd6a99b
Added default parameter to Config getters, implements and closes #2398
2014-12-15 01:05:32 +01:00
Shoghi Cervantes
1041bb0e6a
Do not quiet error messages when parsing config files
2014-12-07 23:21:47 +01:00
Shoghi Cervantes
964bf98ca6
Added Config->getNested(key) and Config->setNested(key, value)
2014-12-07 16:41:43 +01:00
Shoghi Cervantes
eab86f5f90
Replaced array() with []
2014-08-28 17:04:22 +02:00
Shoghi Cervantes
694ccf2bc5
Fixed /reload
2014-06-14 18:46:40 +02:00
Shoghi Cervantes
97a687c03a
Replaced PHPDoc on Config
2014-05-29 20:19:15 +02:00
Shoghi Cervantes
7bd6f2ed91
Added Logger interface, threaded MainLogger and updated PluginLogger
2014-05-28 23:46:56 +02:00
Shoghi Cervantes
53749483c3
Implemented new Inventory windows on Player, Chest and Furnace
2014-05-23 20:53:06 +02:00
Shoghi Cervantes
6cbd39de9b
Added Inventory interfaces and types, updated long array() to []
2014-05-22 18:59:16 +02:00
Shoghi Cervantes
7be9ea68c7
Added Config::getPath() and Config::setPath()
2014-04-05 10:36:18 +02:00
Shoghi Cervantes
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00