mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Remove duplicated Permission type
This commit is contained in:
2 files changed
+12
-40
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
||||
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("net.minecrell.plugin-yml.bukkit")
|
||||
@@ -66,12 +68,12 @@ bukkit {
|
||||
}
|
||||
|
||||
carbonPermission.permissions.get().forEach {
|
||||
bukkit.permissions.register(it.string) {
|
||||
description = it.description
|
||||
childrenMap = it.children
|
||||
}
|
||||
paper.permissions.register(it.string) {
|
||||
description = it.description
|
||||
childrenMap = it.children
|
||||
setOf(bukkit.permissions, paper.permissions).forEach { container ->
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
container as NamedDomainObjectContainer<BukkitPluginDescription.Permission>
|
||||
container.register(it.string) {
|
||||
description = it.description
|
||||
childrenMap = it.children
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user