Browse Source

Merge branch 'master' of https://github.com/Ad5001/UHC

master
Ad5001 3 years ago
parent
commit
c2c8901feb
4 changed files with 12 additions and 12 deletions
  1. 4
    4
      README.md
  2. 3
    3
      src/Ad5001/UHC/Main.php
  3. 3
    3
      src/Ad5001/UHC/UHCWorld.php
  4. 2
    2
      src/Ad5001/UHC/task/StartGameTask.php

+ 4
- 4
README.md View File

@@ -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
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!
### Why is this plugin better?
**This plugins allows you:**
- Creating simple but highly customisable UHC matchs
- 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:
[WIP] Playing UHC (damage without regen and golden apples)

+ 3
- 3
src/Ad5001/UHC/Main.php View File

@@ -5,7 +5,7 @@
# | | | | __ | |
# | |__| | | | | |____
# \____/|_| |_|\_____|
# The most customisable UHC plugin for Minecraft PE !
# The most customisable UHC plugin for Minecraft PE!
namespace Ad5001\UHC ;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
@@ -153,7 +153,7 @@ switch($cmd->getName()){
$player = $this->getServer()->getPlayer($args[1]);
$sender->teleport(new Vector3($player->x, $player->y, $player->z), $player->yaw, $player->pitch);
} else {
$sender->sendMessage(self::PREFIX . "Player {$args[1]} does NOT exists");
$sender->sendMessage(self::PREFIX . "Player {$args[1]} does NOT exist!");
}
} else {
$sender->sendMessage(self::PREFIX . "Usage: /uhc tp <player>");
@@ -186,4 +186,4 @@ switch($cmd->getName()){
}
return false;
}
}
}

+ 3
- 3
src/Ad5001/UHC/UHCWorld.php View File

@@ -5,7 +5,7 @@
# | | | | __ | |
# | |__| | | | | |____
# \____/|_| |_|\_____|
# The most customisable UHC plugin for Minecraft PE !
# The most customisable UHC plugin for Minecraft PE!
namespace Ad5001\UHC ;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
@@ -52,7 +52,7 @@ class UHCWorld {
foreach($players as $player) {
if(!in_array($player, $this->players)){
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.");
}
}
}
@@ -67,4 +67,4 @@ class UHCWorld {
$this->players = $players;
return true;
}
}
}

+ 2
- 2
src/Ad5001/UHC/task/StartGameTask.php View File

@@ -82,7 +82,7 @@ class StartGameTask extends PluginTask {
break;
case 1:
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;
case 0:
@@ -94,4 +94,4 @@ class StartGameTask extends PluginTask {
$this->seconds--;
}
}
}
}

Loading…
Cancel
Save