Ability to access above-mentioned commandsender
This commit is contained in:
parent
ae0cf58abf
commit
3a9889ead7
|
@ -6,6 +6,8 @@ import matterlink.bridge.command.BridgeCommandRegistry
|
|||
import matterlink.bridge.command.HelpCommand
|
||||
import matterlink.bridge.command.PlayerListCommand
|
||||
import matterlink.command.CommandMatterlink
|
||||
import matterlink.command.IMinecraftCommandSender
|
||||
import matterlink.command.MatterlinkCommandSender
|
||||
import matterlink.config.cfg
|
||||
import net.minecraft.util.text.TextComponentString
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler
|
||||
|
@ -77,4 +79,6 @@ object MatterLink : IMatterLink() {
|
|||
|
||||
override fun log(level: String, formatString: String, vararg data: Any) =
|
||||
logger.log(Level.toLevel(level, Level.INFO),formatString, *data)
|
||||
|
||||
override var commandSender: IMinecraftCommandSender = MatterlinkCommandSender
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ import matterlink.bridge.command.BridgeCommandRegistry
|
|||
import matterlink.bridge.command.HelpCommand
|
||||
import matterlink.bridge.command.PlayerListCommand
|
||||
import matterlink.command.CommandMatterlink
|
||||
import matterlink.command.IMinecraftCommandSender
|
||||
import matterlink.command.MatterlinkCommandSender
|
||||
import matterlink.config.cfg
|
||||
import net.minecraft.util.text.TextComponentString
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler
|
||||
|
@ -77,4 +79,6 @@ object MatterLink : IMatterLink() {
|
|||
|
||||
override fun log(level: String, formatString: String, vararg data: Any) =
|
||||
logger.log(Level.toLevel(level, Level.INFO),formatString, *data)
|
||||
|
||||
override var commandSender: IMinecraftCommandSender = MatterlinkCommandSender
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import matterlink.bridge.command.BridgeCommandRegistry
|
|||
import matterlink.bridge.command.HelpCommand
|
||||
import matterlink.bridge.command.PlayerListCommand
|
||||
import matterlink.command.CommandMatterlink
|
||||
import matterlink.command.IMinecraftCommandSender
|
||||
import matterlink.command.MatterlinkCommandSender
|
||||
import matterlink.config.cfg
|
||||
import net.minecraft.util.text.TextComponentString
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler
|
||||
|
@ -76,4 +78,5 @@ object MatterLink : IMatterLink() {
|
|||
override fun log(level: String, formatString: String, vararg data: Any) =
|
||||
logger.log(Level.toLevel(level, Level.INFO),formatString, *data)
|
||||
|
||||
override var commandSender: IMinecraftCommandSender = MatterlinkCommandSender
|
||||
}
|
||||
|
|
|
@ -5,12 +5,15 @@ import matterlink.bridge.command.BridgeCommandRegistry
|
|||
import matterlink.bridge.command.HelpCommand
|
||||
import matterlink.bridge.command.PlayerListCommand
|
||||
import matterlink.bridge.command.UptimeCommand
|
||||
import matterlink.command.IMinecraftCommandSender
|
||||
import matterlink.config.cfg
|
||||
|
||||
lateinit var instance: IMatterLink
|
||||
|
||||
abstract class IMatterLink {
|
||||
// var interrupted: Boolean = false
|
||||
abstract var commandSender: IMinecraftCommandSender
|
||||
|
||||
|
||||
abstract fun wrappedSendToPlayers(msg: String)
|
||||
|
||||
|
|
Loading…
Reference in New Issue