Change Drink version, fix manager calls
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -55,7 +55,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jonahseguin</groupId>
|
<groupId>com.jonahseguin</groupId>
|
||||||
<artifactId>drink</artifactId>
|
<artifactId>drink</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -36,15 +36,11 @@ public class PlayerAI extends JavaPlugin {
|
|||||||
|
|
||||||
// Register all the things
|
// Register all the things
|
||||||
this.registerEvents();
|
this.registerEvents();
|
||||||
|
|
||||||
// Create Netty injections
|
|
||||||
manager.connectAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
manager.reset();
|
manager.reset();
|
||||||
manager.disconnectAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerEvents() {
|
private void registerEvents() {
|
||||||
|
|||||||
Reference in New Issue
Block a user