mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
New VIEW gamemode
This commit is contained in:
parent
5848d283da
commit
3577667039
10 changed files with 58 additions and 32 deletions
|
|
@ -291,6 +291,8 @@ class PocketMinecraftServer{
|
|||
return "creative";
|
||||
case ADVENTURE:
|
||||
return "adventure";
|
||||
case VIEW:
|
||||
return "view";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -515,7 +517,7 @@ class PocketMinecraftServer{
|
|||
$data[0],
|
||||
$this->serverID,
|
||||
RAKNET_MAGIC,
|
||||
$this->serverType. $this->name . " [".($this->gamemode === CREATIVE ? "C":($this->gamemode === ADVENTURE ? "A":"S")).($this->whitelist !== false ? "W":"")." ".count($this->clients)."/".$this->maxClients."] ".$txt,
|
||||
$this->serverType. $this->name . " [".count($this->clients)."/".$this->maxClients."] ".$txt,
|
||||
), false, $packet["ip"], $packet["port"]);
|
||||
$this->custom["times_".$CID] = ($this->custom["times_".$CID] + 1) % strlen($this->description);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue