Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
WillFP committed Dec 26, 2023
2 parents dba640f + c80cdf7 commit 64647e3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ allprojects {

// Denizen
maven("https://maven.citizensnpcs.co/repo")

// IridiumSkyblock
maven("https://nexus.iridiumdevelopment.net/repository/maven-releases/")
}

dependencies {
Expand Down
3 changes: 2 additions & 1 deletion eco-core/core-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("com.github.WhipDevelopment:CrashClaim:f9cd7d92eb")
compileOnly("com.wolfyscript.wolfyutilities:wolfyutilities:3.16.0.0")
compileOnly("com.github.decentsoftware-eu:decentholograms:2.1.2")
compileOnly("com.github.decentsoftware-eu:decentholograms:2.8.5")
compileOnly("com.github.Gypopo:EconomyShopGUI-API:1.4.6")
compileOnly("com.github.N0RSKA:ScytherAPI:55a")
compileOnly("org.black_ixx:playerpoints:3.2.5")
Expand All @@ -62,6 +62,7 @@ dependencies {
compileOnly("com.denizenscript:denizen:1.2.7-SNAPSHOT") {
exclude(group = "*", module = "*")
}
compileOnly("com.iridium:IridiumSkyblock:4.0.8")

compileOnly(fileTree("../../lib") {
include("*.jar")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.willfp.eco.internal.spigot.integrations.antigrief

import com.iridium.iridiumskyblock.PermissionType
import com.iridium.iridiumskyblock.api.IridiumSkyblockAPI
import com.iridium.iridiumteams.PermissionType
import com.willfp.eco.core.integrations.antigrief.AntigriefIntegration
import org.bukkit.Location
import org.bukkit.block.Block
Expand Down Expand Up @@ -49,8 +49,13 @@ class AntigriefIridiumSkyblock : AntigriefIntegration {
}

override fun canPickupItem(player: Player, location: Location): Boolean {
return true
/*
val api = IridiumSkyblockAPI.getInstance()
return api.getIslandPermission(api.getIslandViaLocation(location).orElse(null) ?: return true, api.getUser(player), PermissionType.PICKUP_ITEMS)
PICKUP_ITEMS was removed in Iridium v4
*/
}

override fun getPluginName(): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.bukkit.Location
import java.util.UUID

class HologramDecentHolograms : HologramIntegration {
override fun createHologram(location: Location, contents: MutableList<String>): Hologram {
override fun createHologram(location: Location, contents: List<String>): Hologram {
val id = UUID.randomUUID().toString()

DHAPI.createHologram(id, location, contents)
Expand All @@ -26,8 +26,8 @@ class HologramDecentHolograms : HologramIntegration {
DHAPI.getHologram(id)?.destroy()
}

override fun setContents(contents: MutableList<String>) {
override fun setContents(contents: List<String>) {
DHAPI.setHologramLines(DHAPI.getHologram(id), contents)
}
}
}
}
6 changes: 3 additions & 3 deletions eco-core/core-plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ load: STARTUP
loadbefore:
- Spartan
- CustomCrafting
- Lands
- EconomyShopGUI
- EconomyShopGUI-Premium
softdepend:
- ProtocolLib
- WorldGuard
- GriefPrevention
- Towny
- FactionsUUID
- Lands
- Kingdoms
- NoCheatPlus
- AAC
Expand Down Expand Up @@ -46,8 +48,6 @@ softdepend:
- MythicMobs
- ExecutableItems
- RPGHorses
- EconomyShopGUI
- EconomyShopGUI-Premium
- zShop
- DeluxeSellwands
- Scyther
Expand Down
Binary file removed lib/IridiumSkyblock-3.2.8.jar
Binary file not shown.

0 comments on commit 64647e3

Please sign in to comment.