Code Monkey home page Code Monkey logo

chvault's Introduction

CHVault

A CommandHelper extension providing access to Vault's API.

Download the correct version for your version of CommandHelper:
CHVault 2.1.1 (CommandHelper 3.3.1 - 3.3.3)
CHVault 2.1.3 (CommandHelper 3.3.4 - 3.3.5)
CHVault 2.1.4 (CommandHelper 3.3.5)

Functions

Permissions

Uses Vault to extend the potential of permissions checking with group and multiworld support.

boolean vault_has_permission(player, permission, [world]);

Checks the permission value of a player, optionally in a specific world. When used on an offline player, the accuracy depends on the permission plugin.

array vault_pgroup(player, [world]);

Returns an array of groups that the player is in. When used on offline players, the accuracy of this function is dependent on the permissions plugin.

Chat

string vault_group_prefix(world, group);

Returns the prefix of group in world.

string vault_group_suffix(world, group);

Returns the suffix of group in world.

string vault_user_prefix(world, user);

Returns the prefix of user in world. Accuracy is plugin dependent if user is not online.

string vault_user_suffix(world, user);

Returns the suffix of user in world. Accuracy is plugin dependent if user is not online.

Economy

Provides functions to hook into the server's economy plugin. To use any of these functions, you must have a Vault compatible economy plugin installed in addition to the Vault plugin. Beyond this, there is no special setup to get the economy functions working, assuming they work for you in game using the plugin's default controls. Bank controls may not be supported in your particular plugin, check the details of that particular plugin.

void acc_add(account_name, to_add):

Adds an amount to the specified account

double acc_balance(account_name):

Returns the balance of the given account name.

void acc_divide(account_name, to_divide):

Divides the account by the given amount

void acc_multiply(account_name, to_multiply):

Multiplies the account balance by the given amount

void acc_set(account_name, value):

Sets the account's balance to the given amount

void acc_subtract(account_name, to_subtract):

Subtracts the given amount from the specified account

void bacc_add(bank_name, value):

Adds the specified amount to the bank account's balance

void bacc_balance(bank_name):

Gets the specified bank account's balance

void bacc_divide(bank_name, value):

Divides the bank account's balance by the given value

void bacc_multiply(bank_name, value):

Multiplies the given bank account's balance by the given value

void bacc_remove(bank_name):

Removes the given bank account from the game

void bacc_set(bank_name, value):

Sets the bank account's balance to the given amount

void bacc_subtract(bank_name, value):

Subtracts the specified amount from the bank account's balance

chvault's People

Contributors

pseudoknight avatar jb-aero avatar

Stargazers

Martin Ambrus avatar Jesse avatar

Watchers

 avatar

chvault's Issues

Error when loading with latest dev build of commandhelper

This affects both dev jenkis build #12
and
Build #11 (stable)

[23:41:54] [Server thread/ERROR]: Could not load 'plugins/chvault.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:154) ~[spigot.jar:git-Spigot-078e2f8-9ff3d7f]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-078e2f8-9ff3d7f]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [spigot.jar:git-Spigot-078e2f8-9ff3d7f]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:203) [spigot.jar:git-Spigot-078e2f8-9ff3d7f]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:535) [spigot.jar:git-Spigot-078e2f8-9ff3d7f]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 6 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.