Updated What are UHC (markdown)
parent
80816d5792
commit
a6fbbc7c75
2 changed files with 19 additions and 1 deletions
19
What-are-Scenarios.md
Normal file
19
What-are-Scenarios.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Scenarios
|
||||
Scenarios for UHC are like plugins for server.
|
||||
Download them then put them in your scenarios folder to add them.
|
||||
To add a scenario to your UHC game, you need to be in waiting for more players, then type "/uhc scenarios add <****Scenario name>"
|
||||
|
||||
## How to create a scenario?
|
||||
**Requirements**:
|
||||
- PHP knowledges. You can learn it on [CodeAcademy](https://www.codecademy.com/en/learn/php)
|
||||
- Some pocketmine API knowledeges that are essentials to know how to code it.
|
||||
|
||||
If you know all those, let's start:
|
||||
First, create a new File that will be your scenario code named **"YOUR_SCENARIO_NAME.php"**.
|
||||
Then, you'll need to add the class that will be your main class. So to do that, add some code inside:
|
||||
><?php
|
||||
># This is an example !
|
||||
>class YOUR_SCENARIO_NAME extends \Ad5001\UHC\scenario\Scenario {
|
||||
>
|
||||
>
|
||||
>}
|
|
@ -1 +0,0 @@
|
|||
Welcome to the UHC wiki!
|
Loading…
Reference in a new issue