0bf5ab76fb
Remove WeakRef leftovers
2018-01-23 19:04:37 +00:00
7f4b5d282e
Fixed plugin name validation
...
Invalid characters in plugin names are no longer stripped. They always result in a load error.
The behaviour of replacing spaces with underscores is not changed.
2018-01-14 18:28:19 +08:00
99c55ac889
Plugin: Fixed return type documentation for getResource()
2017-12-30 12:40:50 +00:00
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
38ec5da260
Refactored API compatibility checking code into its own method ( #1394 )
...
Refactored API compatibility checking code into its own method so plugins can use it
this change was inspired by https://github.com/poggit/devirion/blob/master/src/poggit/virion/devirion/DEVirion.php#L140-L172
2017-09-24 15:00:08 +01:00
b14ecc18c4
Remove unused imports
2017-09-20 12:24:44 +01:00
d065e76a41
Fixed plugins with unknown dependencies saying they have circular dependencies, close #356 ( #1342 )
2017-09-04 19:41:21 +01:00
c81b76cbf6
Make plugin load errors more descriptive
2017-09-01 18:52:55 +01:00
517609dc2e
Cleaned up plugin property reading
2017-09-01 18:36:31 +01:00
506118e28f
Fixed exception thrown when plugins specify API version like 3.0 instead of 3.0.0
...
This could only be seen in a build with a non-suffixed API version, for example 3.0.0. When attempting to load plugins which specify API like 3.0 the server would raise errors.
2017-09-01 18:13:07 +01:00
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
5b4035253b
Casting cleanup and removed some 32-bit string-int leftovers
2017-08-17 11:24:49 +01:00
cca9cf2c86
Workaround for plugin versions being read as strings from plugin.yml
...
Config is a real pain in the ass to work with... need to split it up so this can be handled properly
2017-07-16 11:31:21 +01:00
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
8bb0c53797
More typehints for Command stuff
2017-07-14 08:52:27 +01:00
46a2e6cbf8
Some breaking changes for plugins >:D
2017-07-14 08:52:27 +01:00
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
a73c6f1861
Fixed some unnecessary FQNs in docs
2017-06-25 12:43:04 +01:00
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
3f03d9e683
Fixed DevTools getting disabled when a plugin throws an exception during load ( #1025 )
2017-06-07 11:12:47 +01:00
c7c7a40899
Added "extensions" attribute in plugin.yml with version checking ( #903 )
...
* Added "extensions" attribute in plugin.yml with version checking
* Renamed getExtensions() to getRequiredExtensions()
As per recommendation from @dktapps
2017-05-15 10:04:26 +01:00
dbb8e8ad0a
Improved checks for event registration
2017-05-14 12:07:15 +01:00
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08:00
27f2aec160
Fixed wrong docs for Plugin->getPluginFilters()
2017-02-12 12:52:02 +00:00
0c35c16727
Fix some doc comments
2017-02-06 14:50:05 +00:00
26fc21d56c
API version suffix is now non case sensitive
2017-01-19 10:57:32 +00:00
b28e38ab26
Move some exceptions out of utils into their relevant namespaces, move some Chunk methods to ChunkUtils for I/O, refactor "colour" -> "color"
2017-01-15 11:31:12 +00:00
1cb96d24ce
Some fixes, thanks PhpStorm
2017-01-04 11:29:24 +00:00
3433a931c1
Fix load order (no tolerance for mismatches with suffixes)
2016-12-19 19:30:11 +00:00
71704228a9
Added support for API alpha/beta/whatever suffixes
2016-12-19 18:08:45 +00:00
bb7263beac
Fixed script plugins not using first doccomment only
2016-12-17 23:56:43 +08:00
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
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
8441169365
Fixed warning messages when parsing @notscript files
2016-03-28 02:27:03 +08:00
e51c6b4b42
Merge branch 'notscript'
2016-03-28 01:26:29 +08:00
73f24786cd
Fixed @notscript without trailing spaces not detected
2016-03-28 01:26:15 +08:00
13d1089d30
Fixed PluginManager:: type doc
2016-03-23 23:57:02 +08:00
2fb3b41b8d
Added the @notscript tag in potential script plugins
...
Then we can have .php files in the plugins folder that contain /** but are not script plugins
2016-03-23 02:32:11 +08:00
b766b969e2
Merge pull request #3387 from PEMapModder/patch-6
...
Allow saving resources with parent directory being recursively created
2016-02-27 20:52:03 +08:00
a6cd526e60
PHP7 to master
2016-02-21 12:47:30 +01:00
92ee4b3c73
Merge pull request #3876 from PEMapModder/patch-12
...
Add return value for PluginBase::saveDefaultConfig()
2016-02-17 20:33:15 +08:00
b66ce90c94
Add return value for PluginBase::saveDefaultConfig()
2016-01-16 11:39:11 +08:00
ae9a3dbd81
Added additional information to Plugin::getDataFolder()
2015-10-06 20:32:33 +08:00
ddc140af5e
Updated to new pthreads version, updated RakLib
2015-09-27 13:37:27 +02:00
0bcf639a98
Changed how exceptions work and are logged, throw proper exceptions on tasks
2015-09-18 12:03:24 +02:00
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
34dc6ea0d6
NOTE! THIS SHOULD BE REVERTED LATER! Removed WeakRef dependency
2015-08-23 00:25:29 +02:00