Nokorbis / ar-command-signs

Minecraft (Spigot) plugin that allows to transform some blocks (Signs, plates and buttons) into a Commands executor
https://www.spigotmc.org/resources/command-signs.10512/
Apache License 2.0
13 stars 10 forks source link

Using a second currency #41

Open benharmandev opened 5 years ago

benharmandev commented 5 years ago

Hey, I love the plugin so far! I am using a plugin called "GemsEconomy," which allows for multiple Vault currencies in order to have a second currency, gems, that players earn when they vote. Is there any way to get this to work as a currency in the cost requirements? When I enter "30 gems" for example in the text editor it just shows as $30 dollars. Thanks!

Nokorbis commented 5 years ago

I'd need to check if Vault actually support multiple currencies in its API. Otherwise it means your "GemsEconomy" is bypassing the API for some stuff and I can't do much about it.

benharmandev commented 5 years ago

Is there a way to have a precondition for a command like "if balance.gems >= 30 return true;"?

benharmandev commented 5 years ago

%gemseconomybalance% is the placeholder given by GemsEconomy

benharmandev commented 5 years ago

%gemseconomy.balance."currency"%

Nokorbis commented 5 years ago

I checked on GemsEconomy page, but the developer does not provide a comprehensive API that I could easily call from within Command Signs, so I won't do.