Denizen has a great flagging system. I want to access denizen flag on my custom plugin. Is it possible to do so? I know Bukkit offers a command executor using Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender, "the command") but if possible I want to access it without this roundabout way. Also the Bukkit dispatchCommand can only be used to set a flag (Ex. /ex flag <player> ore_broken:10) because it only returns a boolean, not the flag value (Ex. player has a flag ore_broken = 10, using denizen it can be accessed using <player.flag[ore_broken]> and it will return the value 10).
Thank you!