Archived
0

Implement parcel infoString with new privilege system

This commit is contained in:
Dico
2018-09-24 04:24:34 +01:00
parent 03a70078d8
commit 8c1bb296a6
4 changed files with 65 additions and 36 deletions

View File

@@ -11,9 +11,8 @@ import org.bukkit.OfflinePlayer
import org.bukkit.entity.Player
class CommandsPrivilegesGlobal(plugin: ParcelsPlugin) : AbstractParcelCommands(plugin) {
private inline val data get() = plugin.globalPrivileges
@Suppress("NOTHING_TO_INLINE")
private inline operator fun GlobalPrivilegesManager.get(player: OfflinePlayer): GlobalPrivileges = this[PlayerProfile(player)]
private val data
inline get() = plugin.globalPrivileges
@Cmd("entrust")
@Desc(