diff --git a/src/network/Network.php b/src/network/Network.php index 5bfbd3c026..54a78a365a 100644 --- a/src/network/Network.php +++ b/src/network/Network.php @@ -91,7 +91,7 @@ class Network{ $this->sessionManager->tick(); } - public function registerInterface(NetworkInterface $interface) : void{ + public function registerInterface(NetworkInterface $interface) : bool{ $ev = new NetworkInterfaceRegisterEvent($interface); $ev->call(); if(!$ev->isCancelled()){ @@ -105,7 +105,9 @@ class Network{ } } $interface->setName($this->name); + return true; } + return false; } /**