Skip to content

Commit 426e06a

Browse files
authored
Update README.md (#1)
1 parent 7819892 commit 426e06a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $event->call();
4848
## How to handle an event made with this library?
4949
To register an event listener for an async event, you can do it the same way, you would normally do it for every other event listener:
5050
```php
51-
Server::getInstance()->getPluginManager();->registerEvents(new MyListener(), $this);
51+
Server::getInstance()->getPluginManager()->registerEvents(new MyListener(), $this);
5252
```
5353
In this class, you as well create a method which accepts the event, you want to listen to, as a parameter:
5454
```php
@@ -64,4 +64,4 @@ To tell that you finished your checks, etc. and that the next event listener can
6464
$event->continue();
6565
}
6666
```
67-
If you accidentally forget this method call, an exception will be thrown once the event instance is destroyed by the garbage collector.
67+
If you accidentally forget this method call, an exception will be thrown once the event instance is destroyed by the garbage collector.

0 commit comments

Comments
 (0)