blob: 1832387622f6fca73ff7e3d48d3d851fc6c15078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package at.hannibal2.skyhanni.features.commands
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.MessageSendToServerEvent
import at.hannibal2.skyhanni.utils.LorenzUtils
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class WarpIsCommand {
@SubscribeEvent
fun onMessageSendToServer(event: MessageSendToServerEvent) {
if (!LorenzUtils.inSkyBlock) return
if (!SkyHanniMod.feature.commands.replaceWarpIs) return
if (event.message.lowercase() == "/warp is") {
event.isCanceled = true
LorenzUtils.sendCommandToServer("/is")
}
}
}
|