diff --git a/README.md b/README.md index 49b55be2..107a0ef0 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ This wrapper does only run when the manager is running. It connects **automatica The wrapper will be automatically named **"InternalWrapper"** and it will have **2GB of memory**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-internalwrapper/2.3.0/simplecloud-module-internalwrapper-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-internalwrapper/2.4.0/simplecloud-module-internalwrapper-2.4.0.jar)
To edit the memory of the wrapper you can use the command:
@@ -131,7 +131,7 @@ The **Sign Module** is used to show available services for players in the lobby The players can click on that sign and will be sent to the server. The layout of the signs is **fully customizable**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-sign/2.3.0/simplecloud-module-sign-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-sign/2.4.0/simplecloud-module-sign-2.4.0.jar) ![SignModule](https://i.imgur.com/w534aZG.gif "SignModule") @@ -143,7 +143,7 @@ With the **Permission Module**, you can easily manage your permissions. You can define groups and add permissions to them. You can also add permissions to single users.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-proxy/2.3.0/simplecloud-module-proxy-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-permission/2.4.0/simplecloud-module-permission-2.4.0.jar) ![PermissionModule](https://i.imgur.com/mjqCmjq.png"PermissionModule") @@ -156,7 +156,7 @@ It controls the **MOTD**, **Tablist**, **maintenance** and the **online count**. The online count of proxies of one group will be summed up and displayed in the player info.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-proxy/2.3.0/simplecloud-module-proxy-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-proxy/2.4.0/simplecloud-module-proxy-2.4.0.jar) ![ProxyModuleTab](https://i.imgur.com/2djSS9l.jpg "ProxyModuleTab") @@ -181,7 +181,7 @@ Full join: cloud.full.join The **Hub Module** provides a hub command for players to switch to a **lobby server**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-hubcommand/2.3.0/simplecloud-module-hubcommand-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-hubcommand/2.4.0/simplecloud-module-hubcommand-2.4.0.jar)
@@ -191,7 +191,7 @@ The **Notify Module** sends notifications to players that have the required perm or **stopped**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-notify/2.3.0/simplecloud-module-notify-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-notify/2.4.0/simplecloud-module-notify-2.4.0.jar) ![NotifyModule](https://i.imgur.com/7lcjXbN.jpg "NotifyModule") @@ -211,7 +211,7 @@ cloud.module.notify.messages The **REST Module** provides a **restful API**. It is necessary for the **dashboard**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-rest/2.3.0/simplecloud-module-rest-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-rest/2.4.0/simplecloud-module-rest-2.4.0.jar)
@@ -220,7 +220,7 @@ it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/the The **Statistics Module** saves some statistics of the cloud. The data is displayed on the **dashboard**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-statistics/2.3.0/simplecloud-module-statistics-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-statistics/2.4.0/simplecloud-module-statistics-2.4.0.jar)
@@ -229,4 +229,4 @@ it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/the The **Chat + Tab Module** provides **prefixes** and **suffixes** in the tablist and adds a **chat configuration**.
You can **download** -it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-chat-tab/2.3.0/simplecloud-module-chat-tab-2.3.0.jar) +it [here](https://repo.thesimplecloud.eu/artifactory/gradle-release-local/eu/thesimplecloud/simplecloud/simplecloud-module-chat-tab/2.4.0/simplecloud-module-chat-tab-2.4.0.jar) diff --git a/build.gradle b/build.gradle index cc37c051..c5cf6399 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ plugins { allprojects { group 'eu.thesimplecloud.simplecloud' - version '2.4.0' + version '2.4.1' repositories { mavenCentral() diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 159d9c75..65a797cf 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -19,7 +19,6 @@ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # - distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip diff --git a/simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/player/text/CloudTextBuilder.kt b/simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/player/text/CloudTextBuilder.kt index 01234d74..e2ae93c7 100644 --- a/simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/player/text/CloudTextBuilder.kt +++ b/simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/player/text/CloudTextBuilder.kt @@ -22,7 +22,6 @@ package eu.thesimplecloud.api.player.text -import eu.thesimplecloud.api.player.text.CloudText import net.kyori.adventure.text.Component import net.kyori.adventure.text.event.ClickEvent import java.util.function.Consumer diff --git a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/commands/ListCommand.kt b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/commands/ListCommand.kt index 81b5148d..e0513140 100644 --- a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/commands/ListCommand.kt +++ b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/commands/ListCommand.kt @@ -40,13 +40,13 @@ class ListCommand : ICommandHandler { @CommandSubPath("", "Lists some information about the cloud") fun handleList(commandSender: ICommandSender) { - val darkChatColor = if (commandSender is ICloudPlayer) "&8" else "&7" + val darkChatColor = if (commandSender is ICloudPlayer) "§8" else "§7" CloudAPI.instance.getWrapperManager().getAllCachedObjects().forEach { - val connectedMessage = if (it.isAuthenticated()) "&aConnected" else "§cNot Connected" + val connectedMessage = if (it.isAuthenticated()) "§aConnected" else "§cNot Connected" commandSender.sendMessage( - darkChatColor + ">> &3" + it.getName() + darkChatColor + " (&f" + it.getUsedMemory() - + darkChatColor + "/&f" + darkChatColor + ">> §3" + it.getName() + darkChatColor + " (§f" + it.getUsedMemory() + + darkChatColor + "/§f" + it.getMaxMemory() + "MB" + darkChatColor + " | " + connectedMessage + darkChatColor + ")" ) } @@ -59,20 +59,20 @@ class ListCommand : ICommandHandler { val serviceName = if (groups.getRegisteredServiceCount() == 1) "Service" else "Services" commandSender.sendMessage( - darkChatColor + ">> &7" + groups.getName() + darkChatColor + " (&f" + groups.getMaxMemory() - + "MB " + darkChatColor + "/&f " + darkChatColor + ">> §7" + groups.getName() + darkChatColor + " (§f" + groups.getMaxMemory() + + "MB " + darkChatColor + "/§f " + groups.getRegisteredServiceCount() + " " + serviceName + darkChatColor + ")" ) groups.getAllServices().forEach { val wrapperDesign = - if (it.getWrapperName() != null) " " + darkChatColor + "|&3 " + it.getWrapperName() else "" + if (it.getWrapperName() != null) " " + darkChatColor + "|§3 " + it.getWrapperName() else "" commandSender.sendMessage( - darkChatColor + "- &b" + it.getName() + " " + darkChatColor + "(&f" + darkChatColor + "- §b" + it.getName() + " " + darkChatColor + "(§f" + it.getUsedMemory() + "MB" + " ${darkChatColor}| " - + "&f" + it.getOnlineCount() - + darkChatColor + "/&f" - + it.getMaxPlayers() + " " + darkChatColor + "|&3 " + it.getState() + wrapperDesign + darkChatColor + ")" + + "§f" + it.getOnlineCount() + + darkChatColor + "/§f" + + it.getMaxPlayers() + " " + darkChatColor + "|§3 " + it.getState() + wrapperDesign + darkChatColor + ")" ) } @@ -80,19 +80,19 @@ class ListCommand : ICommandHandler { } val unusedGroups = cloudServiceGroups.filter { it.getAllServices().isEmpty() } - .joinToString(darkChatColor + ",&f ") { it.getName() } + .joinToString("$darkChatColor,§f ") { it.getName() } val maxMemory = CloudAPI.instance.getWrapperManager().getAllCachedObjects().sumBy { it.getMaxMemory() } val usedMemory = CloudAPI.instance.getWrapperManager().getAllCachedObjects().sumBy { it.getUsedMemory() } if (unusedGroups.isNotEmpty()) commandSender.sendMessage( - darkChatColor + ">>&7 Unused Groups" - + darkChatColor + ":&f " + unusedGroups + darkChatColor + ">>§7 Unused Groups" + + darkChatColor + ":§f " + unusedGroups ) - commandSender.sendMessage(darkChatColor + ">>&7 Online Services" + darkChatColor + ":&f " + cloudServices.size) + commandSender.sendMessage(darkChatColor + ">>§7 Online Services" + darkChatColor + ":§f " + cloudServices.size) commandSender.sendMessage( - darkChatColor + ">>&7 Memory" + darkChatColor + ":&f " + usedMemory - + darkChatColor + "/&f" + maxMemory + "MB" + darkChatColor + ">>§7 Memory" + darkChatColor + ":§f " + usedMemory + + darkChatColor + "/§f" + maxMemory + "MB" ) } diff --git a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/database/MongoOfflineCloudPlayerHandler.kt b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/database/MongoOfflineCloudPlayerHandler.kt index b7e2c8a0..ab37f22c 100644 --- a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/database/MongoOfflineCloudPlayerHandler.kt +++ b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/manager/database/MongoOfflineCloudPlayerHandler.kt @@ -76,10 +76,10 @@ class MongoOfflineCloudPlayerHandler(val databaseConnectionInformation: Database val userName = databaseConnectionInformation.userName val password = databaseConnectionInformation.password if (password.isBlank() || userName.isBlank()) { - return ConnectionString("mongodb://$host:$port/$databaseName") + return ConnectionString("mongodb://$host:$port/?authSource=$databaseName") } - return ConnectionString("mongodb://$userName:$password@$host:$port/$databaseName") + return ConnectionString("mongodb://$userName:$password@$host:$port/?authSource=$databaseName") } private fun createMongoClient(): MongoClient { diff --git a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/wrapper/impl/CloudPlayerManagerImpl.kt b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/wrapper/impl/CloudPlayerManagerImpl.kt index a016cb65..0ad7c1ca 100644 --- a/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/wrapper/impl/CloudPlayerManagerImpl.kt +++ b/simplecloud-base/src/main/kotlin/eu/thesimplecloud/base/wrapper/impl/CloudPlayerManagerImpl.kt @@ -29,7 +29,6 @@ import eu.thesimplecloud.api.player.ICloudPlayer import eu.thesimplecloud.api.player.IOfflineCloudPlayer import eu.thesimplecloud.api.player.SimpleCloudPlayer import eu.thesimplecloud.api.player.connection.ConnectionResponse -import eu.thesimplecloud.api.player.text.CloudText import eu.thesimplecloud.api.service.ICloudService import eu.thesimplecloud.clientserverapi.lib.promise.ICommunicationPromise import net.kyori.adventure.text.Component diff --git a/simplecloud-base/src/main/resources/files/server.properties b/simplecloud-base/src/main/resources/files/server.properties index 6c6f5ba8..24ade3ec 100644 --- a/simplecloud-base/src/main/resources/files/server.properties +++ b/simplecloud-base/src/main/resources/files/server.properties @@ -19,7 +19,6 @@ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # - #Minecraft server properties #Tue Aug 22 15:33:36 CEST 2017 generator-settings= diff --git a/simplecloud-launcher/src/main/kotlin/eu/thesimplecloud/launcher/console/command/provider/ServiceStateCommandSuggestionProvider.kt b/simplecloud-launcher/src/main/kotlin/eu/thesimplecloud/launcher/console/command/provider/ServiceStateCommandSuggestionProvider.kt index 78d01e6c..40d74baf 100644 --- a/simplecloud-launcher/src/main/kotlin/eu/thesimplecloud/launcher/console/command/provider/ServiceStateCommandSuggestionProvider.kt +++ b/simplecloud-launcher/src/main/kotlin/eu/thesimplecloud/launcher/console/command/provider/ServiceStateCommandSuggestionProvider.kt @@ -22,7 +22,6 @@ package eu.thesimplecloud.launcher.console.command.provider -import eu.thesimplecloud.api.CloudAPI import eu.thesimplecloud.api.command.ICommandSender import eu.thesimplecloud.api.service.ServiceState diff --git a/simplecloud-modules/simplecloud-module-proxy/src/main/kotlin/eu/thesimplecloud/module/proxy/service/bungee/listener/BungeeListener.kt b/simplecloud-modules/simplecloud-module-proxy/src/main/kotlin/eu/thesimplecloud/module/proxy/service/bungee/listener/BungeeListener.kt index 1b367028..5a662904 100644 --- a/simplecloud-modules/simplecloud-module-proxy/src/main/kotlin/eu/thesimplecloud/module/proxy/service/bungee/listener/BungeeListener.kt +++ b/simplecloud-modules/simplecloud-module-proxy/src/main/kotlin/eu/thesimplecloud/module/proxy/service/bungee/listener/BungeeListener.kt @@ -56,7 +56,10 @@ class BungeeListener(private val plugin: BungeePluginMain) : Listener { if (!player.hasPermission(ProxyHandler.JOIN_MAINTENANCE_PERMISSION) && !proxyConfiguration.whitelist.mapToLowerCase().contains(player.name.lowercase()) ) { - player.disconnect(ProxyHandler.getHexColorComponent(ProxyHandler.replaceString(config.maintenanceKickMessage)).toBaseComponent()) + player.disconnect( + ProxyHandler.getHexColorComponent(ProxyHandler.replaceString(config.maintenanceKickMessage)) + .toBaseComponent() + ) event.isCancelled = true return } @@ -69,7 +72,10 @@ class BungeeListener(private val plugin: BungeePluginMain) : Listener { if (!player.hasPermission(ProxyHandler.JOIN_FULL_PERMISSION) && !proxyConfiguration.whitelist.mapToLowerCase().contains(player.name.lowercase()) ) { - player.disconnect(ProxyHandler.getHexColorComponent(ProxyHandler.replaceString(config.fullProxyKickMessage)).toBaseComponent()) + player.disconnect( + ProxyHandler.getHexColorComponent(ProxyHandler.replaceString(config.fullProxyKickMessage)) + .toBaseComponent() + ) event.isCancelled = true } } diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/impl/player/CloudPlayerManagerSpigot.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/impl/player/CloudPlayerManagerSpigot.kt index ed984c00..c90ff717 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/impl/player/CloudPlayerManagerSpigot.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/impl/player/CloudPlayerManagerSpigot.kt @@ -30,7 +30,6 @@ import eu.thesimplecloud.api.location.SimpleLocation import eu.thesimplecloud.api.network.packets.player.* import eu.thesimplecloud.api.player.ICloudPlayer import eu.thesimplecloud.api.player.connection.ConnectionResponse -import eu.thesimplecloud.api.player.text.CloudText import eu.thesimplecloud.api.service.ICloudService import eu.thesimplecloud.clientserverapi.lib.packet.packetsender.sendQuery import eu.thesimplecloud.clientserverapi.lib.promise.CommunicationPromise diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/ProxyEventHandler.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/ProxyEventHandler.kt index 6162c395..cd6ab27f 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/ProxyEventHandler.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/ProxyEventHandler.kt @@ -41,9 +41,7 @@ import eu.thesimplecloud.plugin.network.packets.PacketOutGetTabSuggestions import eu.thesimplecloud.plugin.network.packets.PacketOutPlayerConnectToServer import eu.thesimplecloud.plugin.network.packets.PacketOutPlayerLoginRequest import eu.thesimplecloud.plugin.startup.CloudPlugin -import net.md_5.bungee.api.ProxyServer import java.util.* -import java.util.concurrent.CompletableFuture /** * Created by IntelliJ IDEA. diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/CloudBungeePlugin.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/CloudBungeePlugin.kt index e18ed0ac..a93f7152 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/CloudBungeePlugin.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/CloudBungeePlugin.kt @@ -132,8 +132,9 @@ class CloudBungeePlugin : Plugin(), ICloudProxyPlugin { synchronizeOnlineCountTask() runOfflinePlayerChecker() - - CloudAPI.instance.getEventManager().registerListener(CloudPlugin.instance, CloudPlayerDisconnectListener(this.proxy)) + + CloudAPI.instance.getEventManager() + .registerListener(CloudPlugin.instance, CloudPlayerDisconnectListener(this.proxy)) } override fun onDisable() { diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/listener/CloudPlayerDisconnectListener.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/listener/CloudPlayerDisconnectListener.kt index b5746218..8a23f74b 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/listener/CloudPlayerDisconnectListener.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/bungee/listener/CloudPlayerDisconnectListener.kt @@ -29,7 +29,7 @@ import net.md_5.bungee.api.ProxyServer class CloudPlayerDisconnectListener( private val proxyServer: ProxyServer -): IListener { +) : IListener { @CloudEventHandler fun handle(event: CloudPlayerDisconnectEvent) { diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/CloudVelocityPlugin.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/CloudVelocityPlugin.kt index df301de0..4fb4a810 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/CloudVelocityPlugin.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/CloudVelocityPlugin.kt @@ -96,8 +96,9 @@ class CloudVelocityPlugin @Inject constructor(val proxyServer: ProxyServer) : IC synchronizeOnlineCountTask() runOfflinePlayerChecker() - - CloudAPI.instance.getEventManager().registerListener(CloudPlugin.instance, CloudPlayerDisconnectListener(this.proxyServer)) + + CloudAPI.instance.getEventManager() + .registerListener(CloudPlugin.instance, CloudPlayerDisconnectListener(this.proxyServer)) } diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/commands/VelocityCommand.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/commands/VelocityCommand.kt index deecc9ed..53766baa 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/commands/VelocityCommand.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/commands/VelocityCommand.kt @@ -32,7 +32,6 @@ import eu.thesimplecloud.plugin.proxy.ProxyEventHandler import eu.thesimplecloud.plugin.proxy.velocity.CloudVelocityPlugin import eu.thesimplecloud.plugin.startup.CloudPlugin import java.util.concurrent.CompletableFuture -import java.util.function.Supplier /** * Created by IntelliJ IDEA. diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/CloudPlayerDisconnectListener.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/CloudPlayerDisconnectListener.kt index 0528f8a4..ec85b790 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/CloudPlayerDisconnectListener.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/CloudPlayerDisconnectListener.kt @@ -31,7 +31,7 @@ import net.kyori.adventure.text.Component class CloudPlayerDisconnectListener( private val proxyServer: ProxyServer -): IListener { +) : IListener { @CloudEventHandler fun handle(event: CloudPlayerDisconnectEvent) { diff --git a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/VelocityListener.kt b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/VelocityListener.kt index f208be68..8749227e 100644 --- a/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/VelocityListener.kt +++ b/simplecloud-plugin/src/main/kotlin/eu/thesimplecloud/plugin/proxy/velocity/listener/VelocityListener.kt @@ -34,7 +34,6 @@ import com.velocitypowered.api.event.player.ServerPreConnectEvent import eu.thesimplecloud.api.CloudAPI import eu.thesimplecloud.api.player.connection.DefaultPlayerAddress import eu.thesimplecloud.api.player.connection.DefaultPlayerConnection -import eu.thesimplecloud.api.player.text.CloudText import eu.thesimplecloud.plugin.extension.getCloudPlayer import eu.thesimplecloud.plugin.proxy.CancelType import eu.thesimplecloud.plugin.proxy.ProxyEventHandler