#(reicent) accessing flag on custom plugin

1 messages · Page 1 of 1 (latest)

mystic socket
#

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!

tulip sapphireBOT
#

(reicent) accessing flag on custom plugin

tulip sapphireBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

scenic slate
#

ie reverse of what you're trying

#

can look at dDiscordBot or Depenizen for example code

#

never ever ever execute /ex, that's super wrong

#

instead eg register a custom event, on myplugin does an ore breaky: and then listen to that with a script that uses the - flag <player> ore_broken:10

mental oarBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@mystic socket