mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Merge branch 'master' of github.com:pmmp/PocketMine-MP
This commit is contained in:
commit
8b4aa36e16
@ -183,9 +183,9 @@ For example, a plugin whose main was `pmmp\TesterPlugin\Main` used to have to be
|
||||
|-- pmmp/
|
||||
|-- TesterPlugin/
|
||||
|-- Main.php
|
||||
|-- SomeOtherClass.php
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespacedClass.php
|
||||
|-- SomeOtherClass.php
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespacedClass.php
|
||||
```
|
||||
However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`, now we can get rid of the useless directories and structure it like this instead:
|
||||
```
|
||||
@ -193,8 +193,8 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
|
||||
|-- src/
|
||||
|-- Main.php
|
||||
|-- SomeOtherClass.php
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespacedClass.php
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespacedClass.php
|
||||
```
|
||||
|
||||
**Note**: The old structure will also still work just fine. This is not a required change.
|
||||
|
Loading…
x
Reference in New Issue
Block a user