Browse Source

Merge pull request #4 from XShockinFireX/master

Some typing errors!
master
Ad5001 4 years ago
committed by GitHub
parent
commit
9b06390688
3 changed files with 8 additions and 8 deletions
  1. +3
    -3
      src/Ad5001/UHC/Main.php
  2. +3
    -3
      src/Ad5001/UHC/UHCWorld.php
  3. +2
    -2
      src/Ad5001/UHC/task/StartGameTask.php

+ 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;
@@ -150,7 +150,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>");
@@ -185,4 +185,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;
@@ -45,7 +45,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.");
}
}
}
@@ -60,4 +60,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