Dylan K. Taylor
d065e76a41
Fixed plugins with unknown dependencies saying they have circular dependencies, close #356 ( #1342 )
2017-09-04 19:41:21 +01:00
Dylan K. Taylor
c81b76cbf6
Make plugin load errors more descriptive
2017-09-01 18:52:55 +01:00
Dylan K. Taylor
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
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
5b4035253b
Casting cleanup and removed some 32-bit string-int leftovers
2017-08-17 11:24:49 +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
8bb0c53797
More typehints for Command stuff
2017-07-14 08:52:27 +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
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
3f03d9e683
Fixed DevTools getting disabled when a plugin throws an exception during load ( #1025 )
2017-06-07 11:12:47 +01:00
SOFe
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
Dylan K. Taylor
dbb8e8ad0a
Improved checks for event registration
2017-05-14 12:07:15 +01:00
Dylan K. Taylor
0c35c16727
Fix some doc comments
2017-02-06 14:50:05 +00:00
Dylan K. Taylor
26fc21d56c
API version suffix is now non case sensitive
2017-01-19 10:57:32 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
3433a931c1
Fix load order (no tolerance for mismatches with suffixes)
2016-12-19 19:30:11 +00:00
Dylan K. Taylor
71704228a9
Added support for API alpha/beta/whatever suffixes
2016-12-19 18:08:45 +00:00
SOF3
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
PEMapModder
13d1089d30
Fixed PluginManager:: type doc
2016-03-23 23:57:02 +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
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
34dc6ea0d6
NOTE! THIS SHOULD BE REVERTED LATER! Removed WeakRef dependency
2015-08-23 00:25:29 +02:00
Michael Yoo
ff232a9f04
Merge pull request #3332 from PEMapModder/dec
...
Disallow registration of events without handlerList, fixes #3330
2015-08-11 16:12:59 +09:30
PEMapModder
d5c2702908
Update PluginManager.php
2015-08-10 22:14:11 +08:00
PEMapModder
ff16f2ef05
Disallow registration of events without handlerList
2015-07-29 21:47:39 -04:00
PEMapModder
9bbaf5d00d
Possible workaround with #3330
...
Filters away non-public event handlers
2015-07-30 09:21:35 +08:00
Shoghi Cervantes
1a1b8830a4
Added MemoryManager object watcher for object leak debugging, improved SPL Thread/Worker stopping, fixed some possible weak references crashing unexpectedly
2015-05-09 16:11:12 +02:00
Shoghi Cervantes
3b6e10b759
More langs :D
2015-04-11 14:59:15 +02:00
Shoghi Cervantes
074c8b876d
Cleaned up code
2015-01-03 16:07:49 +01:00
Shoghi Cervantes
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
Shoghi Cervantes
79236c971c
Possibly fix issues related to new lines on different operating systems and event listeners modifiers
2014-12-05 22:43:31 +01:00
Shoghi Cervantes
4a90ac270f
Improved exception handling and debugging
2014-11-22 13:52:36 +01:00
Shoghi Cervantes
8c4faa8622
Added extra Exceptions
2014-10-28 21:07:12 +01:00
Shoghi Cervantes
b6f7ee20fc
Added Error -> Exception handling
2014-10-28 20:43:36 +01:00
Shoghi Cervantes
d473ce13ee
Throw CRITICAL error message on unhandled Exception on plugin events instead of crashing
2014-10-15 18:35:30 +02:00
Shoghi Cervantes
60ca24fe0e
Updated PluginManager event deprecation message
2014-10-14 14:11:58 +02:00
Shoghi Cervantes
582c165479
Implemented Explosion and PrimedTNT, closes #2139
2014-10-07 17:46:01 +02:00
Shoghi Cervantes
ee7d84dfbd
Fixed T_DOUBLE_COLON
2014-09-19 09:48:02 +02:00
Shoghi Cervantes
d312d2a143
Possible fix for #2046 , removed embedded class names
2014-09-19 09:44:58 +02:00
Shoghi Cervantes
1617b2509e
Fixed plugin-related crash
2014-09-15 12:09:30 +02:00
Shoghi Cervantes
09428bc8c7
Merge branch 'master' into pthreads-fix
2014-09-12 13:32:53 +02:00
Shoghi Cervantes
6c7e16d9d4
Added Permission/Permissible calculation timings
2014-09-12 13:08:59 +02:00
Shoghi Cervantes
d298adabad
Merge branch 'master' into pthreads-fix
2014-09-11 22:06:10 +02:00
Shoghi Cervantes
4624dfb472
Fixed Permissible::setPermission() not using the correct order on replacement
2014-09-11 12:17:03 +02:00
Shoghi Cervantes
f4ae58dda2
Removed pthreads workarounds
2014-09-10 15:11:56 +02:00
Shoghi Cervantes
eab86f5f90
Replaced array() with []
2014-08-28 17:04:22 +02:00
Shoghi Cervantes
db7222976e
Code cleanup
2014-08-21 17:26:41 +02:00
Shoghi Cervantes
918024e466
Load later plugins with custom loader, fixes API
2014-08-16 00:30:37 +02:00
Shoghi Cervantes
31b92b392e
Throw invalid event exception when a plugin tries to declare an abstract event
2014-08-15 16:15:12 +02:00