forked from Ad5001/UHC
44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
# _ _ _ _ _____
|
|
# | | | | | | |/ ____|
|
|
# | | | | |__| | |
|
|
# | | | | __ | |
|
|
# | |__| | | | | |____
|
|
# \____/|_| |_|\_____|
|
|
# The most customisable UHC plugin for Minecraft PE !
|
|
namespace Ad5001\UHC\scenario;
|
|
use pocketmine\command\CommandExecutor;
|
|
|
|
interface ScenarioInt extends CommandExecutor {
|
|
/* When the scenario is activating */
|
|
public function onEnable();
|
|
|
|
|
|
/* When the scenario is stoping (end of UHC) */
|
|
public function onStop();
|
|
|
|
|
|
/* Getting the main methods */
|
|
public function getMain();
|
|
|
|
|
|
/* Get the config (which is a part of the config of the plugin) */
|
|
public function getConfig();
|
|
|
|
|
|
/* Save the config */
|
|
public function saveConfig();
|
|
|
|
|
|
/* Test when an event is throwed */
|
|
public function onPlayerEvent(\pocketmine\event\player\PlayerEvent $event);
|
|
public function onEvent(\pocketmine\event\Event $event);
|
|
|
|
|
|
/* Get the scenario folder */
|
|
public function getScenarioFolder();
|
|
|
|
|
|
/* Reload the config */
|
|
public function reloadConfig();
|
|
} |