Skip to content

Commit 326e53b

Browse files
committed
fix: empty tablist group in velocity
1 parent 982b5c4 commit 326e53b

File tree

1 file changed

+11
-10
lines changed
  • proxy-velocity/src/main/kotlin/app/simplecloud/plugin/proxy/velocity/handler

1 file changed

+11
-10
lines changed

proxy-velocity/src/main/kotlin/app/simplecloud/plugin/proxy/velocity/handler/TabListHandler.kt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package app.simplecloud.plugin.proxy.velocity.handler
22

3-
import app.simplecloud.plugin.proxy.shared.config.tablis.TabList
4-
import app.simplecloud.plugin.proxy.shared.config.tablis.TabListGroup
53
import app.simplecloud.plugin.proxy.velocity.ProxyVelocityPlugin
64
import com.velocitypowered.api.proxy.Player
75
import com.velocitypowered.api.scheduler.ScheduledTask
@@ -61,14 +59,17 @@ class TabListHandler(
6159
}
6260
}
6361

64-
if (tabListGroup == null) {
65-
tabListGroup = TabListGroup(
66-
"noValuedGroupOrServiceConfigurationsFround",
67-
listOf(TabList(
68-
listOf("<red>No configuration found for this service"),
69-
listOf("<red>Please check your configuration file from the proxy plugin in the plugins folder"),
70-
))
71-
)
62+
if (tabListGroup == null || tabListGroup.tabLists.isEmpty()) {
63+
// tabListGroup = TabListGroup(
64+
// "noValuedGroupOrServiceConfigurationsFround",
65+
// listOf(
66+
// TabList(
67+
// listOf("<red>No configuration found for this service"),
68+
// listOf("<red>Please check your configuration file from the proxy plugin in the plugins folder"),
69+
// )
70+
// )
71+
// )
72+
return
7273
}
7374

7475
if (tabListGroup.tabLists.size <= tabListIndex.getOrDefault(tabListGroup.groupOrService, 0) + 1)

0 commit comments

Comments
 (0)