mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Ban-IP fix + message
This commit is contained in:
parent
ed8f38ef55
commit
cef574015f
2 changed files with 9 additions and 3 deletions
|
|
@ -231,6 +231,12 @@ class PocketMinecraftServer{
|
|||
switch($packet["pid"]){
|
||||
case 0x02:
|
||||
if(in_array($packet["ip"], $this->bannedIPs)){
|
||||
$this->send(0x1c, array(
|
||||
$data[0],
|
||||
$this->serverID,
|
||||
MAGIC,
|
||||
$this->serverType. $this->name . " [You're banned]",
|
||||
), false, $packet["ip"], $packet["port"]);
|
||||
break;
|
||||
}
|
||||
if(!isset($this->custom["times_".$CID])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue