Skip to content

Commit

Permalink
Merge pull request #3 from caspervanneck/patch-2
Browse files Browse the repository at this point in the history
disable tish so it is working on pmmp
  • Loading branch information
Edwardthedog2 authored May 26, 2017
2 parents e8e07ce + 55c4ee6 commit 9c6153a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/AuthMePE/AuthMePE.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
use pocketmine\command\Command;

use pocketmine\level\Level;
use pocketmine\level\sound\BatSound;
use pocketmine\level\sound\PopSound;
use pocketmine\level\sound\LaunchSound;
///use pocketmine\level\sound\BatSound;
//use pocketmine\level\sound\PopSound;
//use pocketmine\level\sound\LaunchSound;
use pocketmine\level\Position;
use pocketmine\math\Vector3;

Expand Down Expand Up @@ -190,7 +190,7 @@ public function auth(Player $player, $method){
$this->getServer()->getScheduler()->scheduleDelayedTask(new SoundTask($this, $player, 1), 7);
return false;
}
$player->getLevel()->addSound(new BatSound($player), $this->getServer()->getOnlinePlayers());
//$player->getLevel()->addSound(new BatSound($player), $this->getServer()->getOnlinePlayers());
}

public function login(Player $player, $password){
Expand Down
19 changes: 9 additions & 10 deletions src/AuthMePE/SoundTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use pocketmine\scheduler\PluginTask;
use pocketmine\Player;
use pocketmine\level\sound\ClickSound;
use pocketmine\level\sound\LaunchSound;
//use pocketmine\level\sound\ClickSound;
//use pocketmine\level\sound\LaunchSound;

use AuthMePE\AuthMePE;

Expand All @@ -22,13 +22,12 @@ public function __construct(AuthMePE $plugin, $player, $type){
}

public function onRun($tick){
switch($this->type){
case 1:
$this->player->getLevel()->addSound(new ClickSound($this->player), $this->player->getServer()->getOnlinePlayers());
break;
case 2:
$this->player->getLevel()->addSound(new LaunchSound($this->player), $this->player->getServer()->getOnlinePlayers());
break;
//switch($this->type){
//case 1:
/// $this->player->getLevel()->addSound(new ClickSound($this->player), $this->player->getServer()->getOnlinePlayers());
//break;
////case 2:
// $this->player->getLevel()->addSound(new LaunchSound($this->player), $this->player->getServer()->getOnlinePlayers());
// break;
}
}
}

0 comments on commit 9c6153a

Please sign in to comment.