diff --git a/What-are-Scenarios.md b/What-are-Scenarios.md new file mode 100644 index 0000000..1caf8cc --- /dev/null +++ b/What-are-Scenarios.md @@ -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: +># This is an example ! +>class YOUR_SCENARIO_NAME extends \Ad5001\UHC\scenario\Scenario { +> +> +>} diff --git a/What-are-UHC.md b/What-are-UHC.md deleted file mode 100644 index d6bcd39..0000000 --- a/What-are-UHC.md +++ /dev/null @@ -1 +0,0 @@ -Welcome to the UHC wiki!