File tree Expand file tree Collapse file tree
src/main/kotlin/com/example/exampleplugin/commands/moderation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package com.example.exampleplugin.commands
1+ package com.example.exampleplugin.commands.moderation
22
3+ import com.example.exampleplugin.Main
34import com.example.exampleplugin.registration.PluginCommand
45import org.bukkit.command.CommandSender
56import org.bukkit.plugin.java.JavaPlugin
@@ -16,7 +17,7 @@ class ReloadCommand(private val plugin: JavaPlugin) : PluginCommand(
1617 permission = " exampleplugin.reload"
1718) {
1819 override fun execute (sender : CommandSender , args : Array <out String >): Boolean {
19- val main = plugin as ? com.example.exampleplugin. Main
20+ val main = plugin as ? Main
2021 if (main == null ) {
2122 sender.sendMessage(" Error: Plugin instance type mismatch. Unable to reload configuration." )
2223 return true
@@ -25,4 +26,4 @@ class ReloadCommand(private val plugin: JavaPlugin) : PluginCommand(
2526 sender.sendMessage(" Configuration reloaded!" )
2627 return true
2728 }
28- }
29+ }
You can’t perform that action at this time.
0 commit comments