Merge branch 'master' of https://github.com/Ad5001/UHC
This commit is contained in:
commit
c2c8901feb
4 changed files with 12 additions and 12 deletions
|
@ -1,15 +1,15 @@
|
||||||
PLEASE NOTE THAT THE PLUGIN IS ***NOT*** COMPLETE YET ! SO DON4T USE THIS IN A PRODUCTION ENVIRONNEMENT!
|
PLEASE NOTE THAT THE PLUGIN IS ***NOT*** COMPLETE YET! SO DO NOT USE THIS IN A PRODUCTION ENVIRONNEMENT!
|
||||||
|
|
||||||
# UHC
|
# UHC
|
||||||
The most customisable UHC plugin for Minecraft PE!
|
The most customisable UHC plugin for Minecraft PE!
|
||||||
|
|
||||||
Welcome here owner/player ! You may know what the UHC is but if not, read carfully [this](wiki/What-is-UHC).
|
Welcome here, owner/player! You may know what the UHC is but if not, carefully read [this](wiki/What-is-UHC).
|
||||||
This is a recreation of the well known UHC for Minecraft PE servers software in PHP!
|
This is a recreation of the well known UHC for Minecraft PE servers software in PHP!
|
||||||
### Why is this plugin better?
|
### Why is this plugin better?
|
||||||
**This plugins allows you:**
|
**This plugins allows you:**
|
||||||
- Creating simple but highly customisable UHC matchs
|
- Creating simple but highly customisable UHC matchs
|
||||||
- MultiWorld Compatibility
|
- MultiWorld Compatibility
|
||||||
- Scenario compatible ! [What are scenarios](wiki/scenarios)
|
- Scenario compatible! [What are scenarios](https://github.com/Ad5001/UHC/wiki/What-are-Scenarios%3F)
|
||||||
|
|
||||||
Current complete features:
|
Current complete features:
|
||||||
[WIP] Playing UHC (damage without regen and golden apples)
|
[WIP] Playing UHC (damage without regen and golden apples)
|
||||||
|
|
|
@ -153,7 +153,7 @@ switch($cmd->getName()){
|
||||||
$player = $this->getServer()->getPlayer($args[1]);
|
$player = $this->getServer()->getPlayer($args[1]);
|
||||||
$sender->teleport(new Vector3($player->x, $player->y, $player->z), $player->yaw, $player->pitch);
|
$sender->teleport(new Vector3($player->x, $player->y, $player->z), $player->yaw, $player->pitch);
|
||||||
} else {
|
} else {
|
||||||
$sender->sendMessage(self::PREFIX . "Player {$args[1]} does NOT exists");
|
$sender->sendMessage(self::PREFIX . "Player {$args[1]} does NOT exist!");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$sender->sendMessage(self::PREFIX . "Usage: /uhc tp <player>");
|
$sender->sendMessage(self::PREFIX . "Usage: /uhc tp <player>");
|
||||||
|
|
|
@ -52,7 +52,7 @@ class UHCWorld {
|
||||||
foreach($players as $player) {
|
foreach($players as $player) {
|
||||||
if(!in_array($player, $this->players)){
|
if(!in_array($player, $this->players)){
|
||||||
foreach($this->players as $pl) {
|
foreach($this->players as $pl) {
|
||||||
$pl->sendMessage(Main::PREFIX . C::YELLOW . "{$player->getName()} leaved the game.");
|
$pl->sendMessage(Main::PREFIX . C::YELLOW . "{$player->getName()} left the game.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ class StartGameTask extends PluginTask {
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
foreach($this->world->getLevel()->getPlayers() as $player) {
|
foreach($this->world->getLevel()->getPlayers() as $player) {
|
||||||
$player->sendMessage(Main::PREFIX . C::YELLOW . "1 seconds before the game starts");
|
$player->sendMessage(Main::PREFIX . C::YELLOW . "1 second before the game starts");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
|
Loading…
Reference in a new issue