mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
BanEntry: clean up getString()
This commit is contained in:
parent
0642364a44
commit
15425d01bc
@ -107,18 +107,13 @@ class BanEntry{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getString() : string{
|
public function getString() : string{
|
||||||
$str = "";
|
return implode("|", [
|
||||||
$str .= $this->getName();
|
$this->getName(),
|
||||||
$str .= "|";
|
$this->getCreated()->format(self::$format),
|
||||||
$str .= $this->getCreated()->format(self::$format);
|
$this->getSource(),
|
||||||
$str .= "|";
|
$this->getExpires() === null ? "Forever" : $this->getExpires()->format(self::$format),
|
||||||
$str .= $this->getSource();
|
$this->getReason()
|
||||||
$str .= "|";
|
]);
|
||||||
$str .= $this->getExpires() === null ? "Forever" : $this->getExpires()->format(self::$format);
|
|
||||||
$str .= "|";
|
|
||||||
$str .= $this->getReason();
|
|
||||||
|
|
||||||
return $str;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user