This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to print messages | |
log() { | |
echo "$(date +"%Y-%m-%d %H:%M:%S") - $1" | |
} | |
# Check arguments | |
if [ "$#" -ne 2 ]; then | |
log "Usage: $0 <remote> <branch>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package codes.shiftmc.minigame.npc | |
import net.minestom.server.coordinate.Pos | |
import net.minestom.server.entity.* | |
import net.minestom.server.entity.Player.Hand | |
import net.minestom.server.entity.ai.target.ClosestEntityTarget | |
import net.minestom.server.entity.metadata.PlayerMeta | |
import net.minestom.server.event.entity.EntityAttackEvent | |
import net.minestom.server.event.player.PlayerEntityInteractEvent | |
import net.minestom.server.instance.Instance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.shynixn.mccoroutine.bukkit.launch | |
import com.github.shynixn.mccoroutine.bukkit.minecraftDispatcher | |
import org.bukkit.event.Event | |
import org.bukkit.event.EventPriority | |
import org.bukkit.event.Listener | |
import org.bukkit.event.player.PlayerEvent | |
import org.bukkit.plugin.java.JavaPlugin | |
import kotlin.coroutines.CoroutineContext | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("unused") | |
package tech.shiftmc.townywars.api | |
import de.tr7zw.nbtapi.NBT | |
import net.kyori.adventure.text.Component | |
import org.bukkit.Location | |
import org.bukkit.Material | |
import org.bukkit.entity.Entity | |
import org.bukkit.entity.EntityType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("unused") | |
package tech.shiftmc.townywars.api | |
import org.bukkit.Bukkit | |
import org.bukkit.Location | |
import org.bukkit.block.Block | |
import kotlin.math.min | |
data class Cuboid( |