You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation needs updated took me a bit of digging to find that @file:Maven was replaced with @file:DependsOn.
The below error is encountered when compiling a script with @file:DependsOn is used. Removing the @file:DependsOn fixes the compile but breaks the editor being able to find the dependent classes.
@file:Repository("https://hub.spigotmc.org/nexus/content/groups/public/")
@file:Repository("https://jitpack.io")
@file:DependsOn("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT")
//@file:DependsOn("com.github.Ste3et:FurnitureLib:961dd50cb2")
command("ssrod16") {
executor {
sender.sendMessage("Giving sunshine rod 16 to " + sender.name)
val rod = ItemStack(Material.STICK)
val meta = rod.itemMeta
meta.setDisplayName("SunshineRod")
meta.setLore(listOf(ChatColor.RED + "ssrod16"))
rod.setItemMeta(meta)
(sender as Player).inventory.addItem(rod)
}
}
event<BlockBreakEvent> {
this.player.sendMessage("You broke a block! :: " + this.block.type)
}
event<PlayerRiptideEvent> {
this.player.sendMessage("Woo riptide.")
}
The text was updated successfully, but these errors were encountered:
Documentation needs updated took me a bit of digging to find that @file:Maven was replaced with @file:DependsOn.
The below error is encountered when compiling a script with @file:DependsOn is used. Removing the @file:DependsOn fixes the compile but breaks the editor being able to find the dependent classes.
The text was updated successfully, but these errors were encountered: