2016-06-10 15:05:56 +00:00
|
|
|
<?php
|
|
|
|
# _ _ _ _ _____
|
|
|
|
# | | | | | | |/ ____|
|
|
|
|
# | | | | |__| | |
|
|
|
|
# | | | | __ | |
|
|
|
|
# | |__| | | | | |____
|
|
|
|
# \____/|_| |_|\_____|
|
|
|
|
# The most customisable UHC plugin for Minecraft PE !
|
|
|
|
namespace Ad5001\UHC\scenario;
|
|
|
|
use pocketmine\command\CommandExecutor;
|
2016-08-21 07:40:41 +00:00
|
|
|
use pocketmine\command\Command;
|
|
|
|
use pocketmine\command\CommandSender;
|
2016-06-10 15:05:56 +00:00
|
|
|
|
2016-08-21 07:40:41 +00:00
|
|
|
interface ScenarioInt {
|
2016-06-10 15:05:56 +00:00
|
|
|
/* When the scenario is activating */
|
2016-08-21 07:40:41 +00:00
|
|
|
public function onStart();
|
2016-06-10 15:05:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* When the scenario is stoping (end of UHC) */
|
2016-08-24 07:47:43 +00:00
|
|
|
public function onStop(\pocketmine\Player $player);
|
2016-06-10 15:05:56 +00:00
|
|
|
|
|
|
|
|
2016-08-20 05:15:03 +00:00
|
|
|
/* Getting the main methods */
|
|
|
|
public function getMain();
|
2016-06-10 15:05:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Get the config (which is a part of the config of the plugin) */
|
|
|
|
public function getConfig();
|
|
|
|
|
|
|
|
|
|
|
|
/* Save the config */
|
2016-08-21 07:40:41 +00:00
|
|
|
public function saveConfig($cfg);
|
2016-08-20 05:15:03 +00:00
|
|
|
|
|
|
|
|
2016-06-10 15:05:56 +00:00
|
|
|
/* Get the scenario folder */
|
2016-08-22 12:26:53 +00:00
|
|
|
public function getScenariosFolder();
|
2016-06-10 15:05:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Reload the config */
|
|
|
|
public function reloadConfig();
|
2016-08-21 07:40:41 +00:00
|
|
|
|
|
|
|
|
2016-06-10 15:05:56 +00:00
|
|
|
}
|