Skip to content

Commit

Permalink
3.0.0 - Update TimoCloudAPI to 6.0-beta-1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasergott committed Jan 1, 2020
1 parent e84efd0 commit ca628fe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
Binary file added libs/TimoCloud.jar
Binary file not shown.
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cloud.timo</groupId>
<artifactId>CloudNotify</artifactId>
<version>2.0.4</version>
<version>3.0.0</version>
<build>
<finalName>${project.name}</finalName>
<resources>
Expand Down Expand Up @@ -65,6 +65,14 @@
<version>LATEST</version>
<scope>compile</scope>
</dependency>
<!--TimoCloudAPI-->
<dependency>
<groupId>cloud.timo.TimoCloud</groupId>
<artifactId>TimoCloud-API</artifactId>
<version>6.0.0</version>
<systemPath>${project.basedir}/libs/TimoCloud.jar</systemPath>
<scope>system</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
import cloud.timo.TimoCloud.api.TimoCloudAPI;
import cloud.timo.TimoCloud.api.events.EventHandler;
import cloud.timo.TimoCloud.api.events.Listener;
import cloud.timo.TimoCloud.api.events.ServerRegisterEvent;
import cloud.timo.CloudNotify.CloudNotify;
import cloud.timo.CloudNotify.managers.MessageManager;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.ProxyServer;
import cloud.timo.TimoCloud.api.events.server.ServerRegisterEvent;

public class ServerRegisterListener implements Listener {

Expand All @@ -18,7 +15,7 @@ public ServerRegisterListener(){

@EventHandler
public void onServerRegister(ServerRegisterEvent event) {
CloudNotify.getInstance().getHelper().notify(NotifyType.REGISTER, event.getServerObject());
CloudNotify.getInstance().getHelper().notify(NotifyType.REGISTER, event.getServer());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import cloud.timo.TimoCloud.api.TimoCloudAPI;
import cloud.timo.TimoCloud.api.events.EventHandler;
import cloud.timo.TimoCloud.api.events.Listener;
import cloud.timo.TimoCloud.api.events.ServerUnregisterEvent;
import cloud.timo.CloudNotify.CloudNotify;
import cloud.timo.TimoCloud.api.events.server.ServerUnregisterEvent;

public class ServerUnregisterListener implements Listener {

Expand All @@ -15,7 +15,7 @@ public ServerUnregisterListener(){

@EventHandler
public void onServerUnregister(ServerUnregisterEvent event) {
CloudNotify.getInstance().getHelper().notify(NotifyType.UNREGISTER, event.getServerObject());
CloudNotify.getInstance().getHelper().notify(NotifyType.UNREGISTER, event.getServer());
}

}
2 changes: 1 addition & 1 deletion src/main/java/cloud/timo/CloudNotify/utils/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void notify(NotifyType notifyType, ServerObject serverObject) {
}
MessageManager.sendMessageToTeam(ChatColor.translateAlternateColorCodes('&', mainMessage
.replace("{serverName}", serverObject.getName())
.replace("{serverBase}", serverObject.getBase())
.replace("{serverBase}", serverObject.getBase().getName())
.replace("{serverExtra}", serverObject.getExtra())
.replace("{serverMap}", serverObject.getMap())
.replace("{serverMOTD}", serverObject.getMotd())
Expand Down

0 comments on commit ca628fe

Please sign in to comment.