@@ -2,7 +2,6 @@ package ru.endlesscode.bukkitgradle.server.extension
22
33import org.slf4j.Logger
44import org.slf4j.LoggerFactory
5- import java.util.*
65
76public class ServerConfigurationImpl : ServerConfiguration {
87
@@ -17,25 +16,17 @@ public class ServerConfigurationImpl : ServerConfiguration {
1716 override var javaArgs: List <String > = listOf (" -Xmx1G" )
1817 override var bukkitArgs: List <String > = emptyList()
1918
20- override var coreType: CoreType = CoreType .SPIGOT
21-
22- /* *
23- * Sets core from string.
24- * @see coreType
25- */
19+ @Suppress(" UNUSED_PARAMETER" )
20+ @Deprecated(" Core selecting is not supported anymore. Paper is always used." )
2621 public fun setCore (core : String ) {
27- try {
28- coreType = CoreType .valueOf(core.uppercase(Locale .ENGLISH ))
29- } catch (_: IllegalArgumentException ) {
30- logger.warn(
31- """
32- Core type '$core ' not found. May be it doesn't supported by BukkitGradle yet.
33- Fallback core type is '${coreType.name} '.
34- Supported types: ${CoreType .values().joinToString(" , " )}
35- Write an issue on GitHub to request support of other cores.
36- """ .trimIndent()
37- )
38- }
22+ logger.warn(
23+ """
24+ Server core selecting is not supported anymore. Paper is always used.
25+ Please, remove `bukkit.server.setCore(...)` from your build script.
26+ If you want to use other server core, file an issue:
27+ https://github.com/EndlessCodeGroup/BukkitGradle/issues/new
28+ """ .trimIndent()
29+ )
3930 }
4031
4132 /* * Append the given [args] to `javaArgs`. */
@@ -62,7 +53,6 @@ public class ServerConfigurationImpl : ServerConfiguration {
6253 " , encoding='$encoding '" +
6354 " , javaArgs='$javaArgs '" +
6455 " , bukkitArgs='$bukkitArgs '" +
65- " , coreType=$coreType " +
6656 " }"
6757 }
6858
0 commit comments