예제 #1
0
파일: BanTest.php 프로젝트: blast007/bzion
 public function testIndefiniteExpiry()
 {
     $victim = $this->getNewPlayer();
     $ban = Ban::addBan($victim->getId(), $this->getNewPlayer()->getId(), null, "Reason");
     $this->assertTrue($victim->isBanned());
     $this->assertEquals(Ban::getBan($victim->getId())->getId(), $ban->getId());
 }
예제 #2
0
파일: Player.php 프로젝트: bchhun/bzion
 /**
  * Find out if a player is banned
  */
 public function isBanned()
 {
     return Ban::getBan($this->id) !== null;
 }