mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
github web editor sucks
This commit is contained in:
parent
69fa8e8db7
commit
821c9c550b
@ -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,7 +193,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
|
||||
|-- src/
|
||||
|-- Main.php
|
||||
|-- SomeOtherClass.php
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespace/
|
||||
|-- SomeNamespacedClass.php
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user