Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CombatLogger/src/Lambo/CombatLogger/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function EntityDamageEvent(EntityDamageEvent $event){
}

private function setTime(Player $player){
$msg = "[CombatLogger] Logging out now will cause you to die.\nPlease wait ".$this->interval." seconds.";
$msg = "[MVPELogger] You are now in combat. ".$this->interval." seconds.";
if(isset($this->players[$player->getName()])){
if((time() - $this->players[$player->getName()]) > $this->interval){
$player->sendMessage($msg);
Expand Down Expand Up @@ -112,7 +112,7 @@ public function onRun($currentTick){
$this->seconds++;
if($this->seconds === $this->interval){
if($this->player->isOnline()){
$this->player->sendMessage("[CombatLogger] You can now log out.");
$this->player->sendMessage("[MVPELogger] You are not logger in comabt.");
$this->plugin->getServer()->getScheduler()->cancelTask($this->getTaskId());
unset($this->plugin->tasks[$player->getName()]);
}
Expand Down