Ability to access above-mentioned commandsender

This commit is contained in:
DaMachinator 2018-02-15 11:31:57 -05:00
parent ae0cf58abf
commit 3a9889ead7
4 changed files with 14 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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)