This repository was archived by the owner on Apr 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -140,24 +140,22 @@ index 0000000000000000000000000000000000000000..dd96b107b3208707958735ef059c6b20
140
140
\ No newline at end of file
141
141
diff --git a/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt b/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt
142
142
new file mode 100644
143
- index 0000000000000000000000000000000000000000..51a527c2c5819808277fc87473b76db4b7253817
143
+ index 0000000000000000000000000000000000000000..80eeb4a1c7d3789a62a298722471ab3edac0688c
144
144
--- /dev/null
145
145
+++ b/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt
146
- @@ -0,0 +1,199 @@
146
+ @@ -0,0 +1,197 @@
147
147
+ package one.tranic.levelpowered.vine.config
148
148
+
149
149
+ import gg.pufferfish.pufferfish.simd.SIMDDetection
150
150
+ import net.minecraft.server.MinecraftServer
151
151
+ import one.tranic.levelpowered.vine.commands.VineCfgCommand
152
152
+ import org.bukkit.Bukkit
153
153
+ import org.bukkit.configuration.file.YamlConfiguration
154
- + import org.simpleyaml.configuration.file.YamlFile
155
154
+ import java.io.File
156
155
+
157
156
+ object VineConfig {
158
157
+ var logger: org.slf4j.Logger = MinecraftServer.LOGGER
159
158
+ private lateinit var configuration: YamlConfiguration
160
- + private val config: YamlFile = YamlFile()
161
159
+
162
160
+ @JvmStatic
163
161
+ fun setCommand() {
@@ -305,8 +303,8 @@ index 0000000000000000000000000000000000000000..51a527c2c5819808277fc87473b76db4
305
303
+ return configuration.getInt(path)
306
304
+ }
307
305
+
308
- + private fun getString(path: String): String {
309
- + return config .getString(path)
306
+ + private fun getString(path: String): String? {
307
+ + return configuration .getString(path)
310
308
+ }
311
309
+
312
310
+ object LevelBukkit {
You can’t perform that action at this time.
0 commit comments