23 Commits

Author SHA1 Message Date
Johnmacro
66818e178a DefaultPermissions: Fix typos in permission descriptions (#2918) 2019-05-12 09:20:45 +01:00
Dylan K. Taylor
fdc3faadc9 Register two missing default permissions
this fixes the pocketmine.command node not having the expected effect in some cases.
2019-04-05 18:48:37 +01:00
Dylan K. Taylor
93969197f7 Enable status,gc,dumpmemory OOB
dumpmemory has been confined to console by default due to the hazards it poses to a running server.

closes #2528
2019-01-05 18:56:57 +00:00
Dylan K. Taylor
5dfceeea98 Fix typo in command.op.take permission description 2019-01-04 23:56:29 +00:00
Dylan K. Taylor
9a2845640b
Permissions management cleanup (#2332)
* Added a new PermissionManager, remove ridiculous cyclic dependencies of Permissions on Server

Aside from all the other ridiculous design problems with the permission system, the biggest problems are its API. This is, once again, a result of poor API design copied from Bukkit.

This pull request removes all permission-related functionality from `PluginManager` and moves it to the `pocketmine\permission\PermissionManager` class.

As can be observed from the removed code in the diff, the permissions system was previously entirely dependent on the Server, because it needed to get the PluginManager for registering permissions. This is utterly ridiculous. This refactor isolates _most_ permission-related functionality within the `permission` namespace.

As mentioned above, this stupid API is a direct result of copying from Bukkit. If you look at the API documentation for Bukkit for `PluginManager` you will see that the methods I'm deprecating here are also in there.

## Changes
- Added a new `PermissionManager` class. This can be accessed via its singleton `getInstance()` static method.
- Deprecated the following `PluginManager` methods - these will be removed no later than 4.0.0:
  - `getPermission()`
  - `addPermission()`
  - `removePermission()`
  - `getDefaultPermissions()`
  - `recalculatePermissionDefaults()`
  - `subscribeToPermission()`
  - `unsubscribeFromPermission()`
  - `getPermissionSubscriptions()`
  - `subscribeToDefaultPerms()`
  - `unsubscribeFromDefaultPerms()`
  - `getDefaultPermSubscriptions()`
  - `getPermissions()`
2018-07-26 10:21:41 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
c3b8be3f60 and more typehints 2017-07-14 10:56:51 +01:00
Dylan K. Taylor
51b0673b4b Bite the bullet and enable strict types on everything 2017-06-07 12:53:16 +01:00
TheDiamondYT1
653b6b55a9 Added title command and API for resetting title duration 2017-04-27 16:38:51 +01:00
jasonwynn10
b9dfc7551a Added Permission to bypass spawn protection, close #440 (#451) 2017-03-25 20:34:42 +00:00
SOFe
e33eb0ddb6 Fixed missing permission registration in in #355 (#396) 2017-03-05 10:03:59 +00:00
Shoghi Cervantes
f093a6498d Added base enchantment adding utilities, /enchant command 2015-08-08 16:03:04 +02:00
Shoghi Cervantes
b166628940
Added ability to dump memory 2015-06-19 13:01:49 +02:00
Shoghi Cervantes
d6ebff412c
Added ChunkLoader interface 2015-05-16 15:28:31 +02:00
Shoghi Cervantes
e2bae92df8
Updated language files and command descriptions 2015-04-12 00:59:12 +02:00
Shoghi Cervantes
c2138aa30c
More language files 2015-04-11 12:56:38 +02:00
Shoghi Cervantes
a2b3e48b45
Added /particle command 2015-03-20 03:37:58 +01:00
Shoghi Cervantes
4383e272eb
Added Effects base, /effect and methods 2015-03-15 23:15:54 +01:00
Shoghi Cervantes
8a87280566 Added /time start and /time stop 2014-11-01 17:45:11 +01:00
Shoghi Cervantes
67b0c4bc2e Added base timings 2014-07-12 02:26:06 +02:00
Shoghi Cervantes
e9aba34e6b Added /setworldspawn 2014-04-10 18:50:41 +02:00
Shoghi Cervantes
908210969e Added permissions for /status 2014-04-03 13:17:10 +02:00
Shoghi Cervantes
dd17652aca Fixed wrong paths 2014-04-01 05:06:12 +02:00