[INACTIVE][ECON] BOSEconomy v0.6.2 - Simple Server Economy [714]

Discussion in 'Inactive/Unsupported Plugins' started by Cosine, Feb 18, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Cosine

    THIS THREAD IS NO LONGER ACTIVE.
    PLEASE DIRECT ALL POSTS TO THE NEW BOSECONOMY THREAD AT THIS LINK.

    BOSEconomy is a simple, lightweight economy plugin. Every player owns an amount of currency and can make simple payments between one another. Read below to see all of the available features.

    BOSEconomy stands for "Brotherhood of Slaughter Economy". The plugin was originally designed for our community's Minecraft server.

    Features:
    • Players own money and can make payments between one another. Just find somebody you want to pay, and use "/pay [player] [amount]".
    • Periodic wages can be configured to pay any amount of money at any desired interval, or to pay players based on their playtime. Players can be in any number of wage brackets; these brackets determine how much the player makes.
    • Bank accounts can serve as money pools between multiple players. Anybody can pay money to a bank account, but only members are able to withdraw from the account. Owners have the additional ability to add other owners or members to their bank account.
    • A top-5 listing and basic statistics can be used to see how wealthy the server is, and to encourage competition.
    • Several admin commands allow for the modification of player money and brackets from within Minecraft.
    • The properties file allows the server owner to decide what the currency is called, how often it's payed, and much more as listed below.
    • Several straightforward plugin hooks make it simple to interface with BOSEconomy.
    Supporting Plugins:

    • Hawox's uQuest - A simple, overly customizable quest system.
    • Codisimus's Turnstile - Create turnstiles to prevent players from entering certain locations without paying.
    • Codisimus's DungeonReward - Reward players with money for reaching a certain region of the world.
    • Codisimus's PhatLoots - Players can open linked chests and be rewarded with money.
    • Baptiste Pillot's RealShop - A very simple-to-use shop system to deal materials stored in chests.
    • Koanga's TradeMod - A simple plugin allowing players to trade items.
    • Fernferret's WolfPound - Allows users to buy wolves, or get them for free.
    • TZer0's Money2XP - Train your mcMMO skills using money.
    • Retsrif's Blacksmith - Lets you repair your tools with money.
    • Rcjrrjcr's BuyAbilities - Allows players to purchase abilities or permissions with money.
    • aPunch's Challenges - Admins can start server challenges for players to beat.
    • Acrobot's iConomyChestShop - Turn a chest into a shop by simply placing a sign over it.
    • Is your plugin not on this list? Send me a message and I'll add it in!
    Setup:

    1. Place BOSEconomy.jar in your plugins folder and run the server. BOSEconomy will generate the necessary files.
    2. Open plugins/BOSEconomy/BOSEconomy.properties and configure it as you see fit. The keys are explained below under 'File Information'.
    3. Enter 'reload' in the server console to update it with your changes. BOSEconomy should now be ready to go.
    Permissions:
    Show Spoiler


    There are multiple permission settings currently available to BOSEconomy.

    Op Permissions:
    When op-permissions is enabled, server ops automatically gain access to every BOSEconomy command. Non-op players inherit permissions from Phoenix Permissions.​

    Phoenix Permissions:
    When phoenix-permissions are enabled, BOSEconomy will attempt to use TheYeti's Permissions (Phoenix) plugin. The permissions to use in Phoenix are:​
    • BOSEconomy.common - For ordinary player commands such as payment.
    • BOSEconomy.admin.money - For directly altering player money.
    • BOSEconomy.admin.bracket - For manipulating player brackets.
    • BOSEconomy.admin.bank - For creating and managing bank account.
    • BOSEconomy.admin.reload - The "/econ reload" command. Generally useful only to server owners.
    Note that these permissions have no inheritance; players with the admin permissions must be explicitly given the common permissions as well.​

    Default Permissions:
    If the Phoenix plugin can't be located, permissions are handled as if phoenix-permissions is set to false. If op-permissions is the only enabled setting, all common players are given access to the common permissions and ops are given access to all commands. If no permissions settings are enabled, all players are given access to only the common permissions.​

    To quickly check your permission settings, you can enter '/econ help' to see the list of all commands you can use.


    Commands:
    Show Spoiler

    The following is a list of commands, with a * signifying a money command, a & for a bracket command, and a $ for a bank command (relevant for Phoenix permissions).
    • /econ
      Displays your money.
    • /econ income <page>
      Lists any income brackets that you reside in, shows how much each pays, shows your total wage, and shows the payment interval.
    • /econ pay [player] [amount]
      Pays another player the given amount of money. The amount must be positive, you must be able to afford it, and the other use must be online. This is also the command to pay money to a bank account. To do so, put a $ sign infront of the name of the bank you wish to deposit into. For example: "/econ pay $MyBank 200"
    • /econ stats
      Displays the total money, total players, average money, and average income of the server. Bank accounts and excluded brackets are not factored into statistics.
    • /econ top5
      Displays the top 5 wealthiest players.
    • /econ set [player] [amount]
      * Sets the amount of money owned by the given player. Money may be set to a negative value; players with negative money can't make payments.
    • /econ view [player]
      * Displays how much money the given player owns.
    • /econ add [player] [amount]
      * Adds money to the given player.
    • /econ sub [player] [amount]
      * Subtracts money from the given player.
    • /econ clear [player]
      * Sets the player's money to zero.
    • /econ reload
      Reloads all serverside files pertaining to the plugin. This includes the properties, users, money, lastPayment, brackets, and version files. This is needed to register changes to the files made during runtime.
    • /econ bracket view [player] <page>
      & Displays a list of all brackets the given player resides in, and how much they pay.
    • /econ bracket list <page>
      & Displays a list of all existing brackets, how much they pay, and how many people are in them. This should not be confused with the 'brackets view' command. This list will contain any fake brackets that players have been added to, but these ones are not actually saved to the brackets file.
    • /econ bracket add [player] [bracket]
      & Adds the given player to the given bracket. If the bracket doesn't exist, it is created with a value of 0. The new bracket is saved to the users file, but not to the brackets file.
    • /econ bracket remove [player] [bracket]
      & Removes the given player from the given bracket.
    • /econ bracket clear [player]
      & Removes the given player from all of their brackets.
    • /econ bank create [bank] <owner1> ...
      $ Creates a new bank account with any number of initial owners.
    • /econ bank remove [bank]
      $ Removes a bank account.
    • /econ bank list <page>
      $ Lists all existing bank accounts.
    • /econ bank view [bank]
      Displays how much money is in a bank account. Only members of a bank can view its balance.
    • /econ bank listmembers [bank] <page>
      Lists the owners and members of a bank account. Only members can use this for any particular bank.
    • /econ bank withdraw [bank] [amount]
      Withdraws money from a bank. Only owners and members of the bank can use this.
    • /econ bank addowner [bank] [owner]
      Adds an owner to a bank. Only bank owners can add new owners.
    • /econ bank addmember [bank] [member]
      Adds a member to a bank. Only bank owners can add new members.
    • /econ bank removemember [bank] [member]
      Removes an owner or member from a bank. Only bank owners can remove members.
    • /econ help <page>
      Displays every command you have access to with a brief description of it. The help section displays for any unrecognized command.


    File Information:
    Show Spoiler

    BOSEconomy currently utilizes 6 files. These are generated automatically when they are needed. Depending on your settings, some of them might not generate immediately, or at all. All plugin files are expected to be in the 'plugins/BOSEconomy/' directory.

    BOSEconomy.properties:
    Stores basic settings for the plugin. This file is generated automatically. Do not pad the '=' with spaces or they will be read as part of the values.​
    • money-name: The name for a unit of currency.
    • money-name-plural: The name for a pluralized unit of currency.
    • initial-money: Brand new players will automatically start with this much money.
    • wage-interval: The number of time units between wage payments. If online-wages are enabled, this is how long a player must be online before they are paid. If online-wages is disabled, the server pays all players every time this interval elapses. Set this to zero to disable wage payments altogether.
    • wage-interval-unit: The unit to measure the wage interval in. Valid entries are: second, minute, hour, day, week
    • default-bracket: The bracket to assign new players to. Leave this blank to have no default bracket.
    • debug-mode: Displays debug messages mostly pertaining to file reading and writing. This is very spammy, so keep it off when it isn't needed.
    • op-permissions: Ops are automatically given access to every command.
    • phoenix-permissions: The plugin will utilize TheYeti's Permissions ("Phoenix") plugin.
    • online-wages: Wages are paid based on how long players are online rather than using static wage intervals.
    brackets.txt:

    Stores the wage brackets. Brackets are formed by a name and a value seperated by a space, followed by any flags. Currently the only flag is 'exclude'. Any players in an excluded bracket are ignored by top5 and statistics. There should be one bracket per line. This file is generated automatically with the default-bracket and a value of 0. Brackets should only contain letters, numbers, and underscores.​
    The following is a sample brackets.txt file:​
    Code:
    peasants 0
    knights 5
    lords 10
    kings 50
    winners 1000 exclude
    losers -2
    
    lastPayment.dat:
    Do not ever modify this file. It stores the system time of the last wage payment. The file is safe to delete however, and doing so will reset the wage counter to the current time. If online-wages is turned on, this file is removed automatically.​

    money.txt:
    Stores the amount of money owned by every recorded player, and their online playtime (used with the online-wages setting). This file is modified frequently by the server so it's best not to alter it while the plugin is running. It's created when the first player joins the server.​

    users.txt:
    Stores the wage brackets for every recorded player. New players are added to this file automatically. It can be modified directly, but it's safer to use the in-game commands for manipulating brackets and banks.​
    The following is the format for this file:​
    Code:
    <player>:<bracket1>,<bracket2>,...<bracketN>
    $<bank>:<owner1>,<owner2>,...<ownerN>:<member1>,<member2>...<memberM>
    
    version.dat:
    This is used to handle file changes between versions. This file is created automatically and should never be modified or removed.​



    Plugin Interfacing:
    Show Spoiler

    To have your plugin interface with BOSEconomy, add BOSEconomy.jar to your plugin's build path. Use the following code to get a reference to it (called from within your plugin class):​
    Code:
    Plugin temp = this.getServer().getPluginManager().getPlugin("BOSEconomy");
    BOSEconomy economy = null;
    if(temp != null)
        economy = (BOSEconomy)temp;
    
    The following methods are available for use. These are accessed directly off of the BOSEconomy plugin reference. It's up to your implementation to decide how you want to make this reference available to your code.​
    Code:
    /**
    * Gets the money owned by the given player name. To find an existing player,
    * the name must be an exact match. Note though that the name is not case
    * sensitive. When attempting to get the money of a nonexistent player, their
    * name is registered in the economy and given the default money value. To
    * check in advance whether a player is registered in the economy, use the
    * playerRegistered() method.
    *
    * @param name
    *          - The name of the player.
    * @return The amount of money owned by the player.
    */
    public int getPlayerMoney(String name)
    
    /**
    * Sets a player's money. To modify an existing player, the name must be an
    * exact match. Note though that the name is not case sensitive. If the name
    * does not match any player, it is registered into the economy and given the
    * provided money value. Players are not automatically notified of any changes
    * to their money; if desired, it must be done explicitly after calling this
    * method. If the mustBeOnline flag is set to true, the method will only
    * perform changes on players that are online and will not register
    * nonexistent players into the economy.
    *
    * @param name
    *          - The name of the player.
    * @param money
    *          - The money to set the player to.
    * @param mustBeOnline
    *          - Whether the player must be online to perform the change.
    * @return True if any changes were made, false otherwise.
    */
    public boolean setPlayerMoney(String name, int money, boolean mustBeOnline)
    
    /**
    * Adds to a player's money. Negative values will subtract money instead. Note
    * that a player's money can be negative. To modify an existing player, the
    * name must be an exact match. Note though that the name is not case
    * sensitive. If the name does not match any player, it is registered into the
    * economy and the given money value is added to it. Players are not
    * automatically notified of any changes to their money; if desired, it must
    * be done explicitly after calling this method. If the mustBeOnline flag is
    * set to true, the method will only perform changes on players that are
    * online and will not register nonexistent players into the economy.
    *
    * @param name
    *          - The name of the player.
    * @param money
    *          - The money to add to the player.
    * @param mustBeOnline
    *          - Whether the player must be online to perform the change.
    * @return True if any changes were made, false otherwise.
    */
    public boolean addPlayerMoney(String name, int money, boolean mustBeOnline)
    
    /**
    * Checks if a player is registered into the economy. All online players are
    * already considered registered. The name of the player must be an exact
    * match, though the name is not case sensitive.
    *
    * @param name
    *          - The name of the player.
    * @param mustBeOnline
    *          - If set, the method will only return true if the player is
    *          registered and is online.
    * @return Whether the player is registered in the economy.
    */
    public boolean playerRegistered(String name, boolean mustBeOnline)
    
    /**
    * Registers the given player name into the economy system. If a player with
    * this name is already registered, nothing happens.
    *
    * @param name
    *          - The name of the player to register.
    * @return True if the player was registered, or false if a player with that
    *        name already exists.
    */
    
    public boolean registerPlayer(String name)
    /**
    * Sends a message to the given player informing them of how much money they
    * have. If the player is not online, nothing happens.
    *
    * @param name
    *          - The name of the player.
    */
    public void tellPlayerMoney(String name)
    
    /**
    * Gets the amount of money in the given bank account. To find an existing
    * bank, the name must be an exact match. Note though that the name is not
    * case sensitive. When attempting to get the money of a nonexistent bank, a
    * bank by that name is created automatically. To check in advance whether a
    * bank exists, use the bankExists() method.
    *
    * @param name
    *          - The name of the bank.
    * @return The amount of money in the bank.
    */
    public int getBankMoney(String name)
    
    /**
    * Sets the amount of money in the given bank account. To modify an existing
    * bank, the name must be an exact match. Note though that the name is not
    * case sensitive. If the name does not match any bank and the mustExist flag
    * is set to false, a bank by that name is created and given the provided
    * money value. Any members of the bank who are online will not be
    * automatically notified of any changes. If desired, it must be done
    * explicitly after calling this method.
    *
    * @param name
    *          - The name of the bank.
    * @param money
    *          - The money to set the bank to.
    * @param mustExist
    *          - Whether he bank account must already exist.
    * @return True if any changes were made, false otherwise.
    */
    public boolean setBankMoney(String name, int money, boolean mustExist)
    
    /**
    * Adds to the amount of money in the given bank account. To modify an
    * existing bank, the name must be an exact match. Note though that the name
    * is not case sensitive. If the name does not match any bank and the
    * mustExist flag is set to false, a bank by that name is created and given
    * the provided money value. Any members of the bank who are online will not
    * be automatically notified of any changes. If desired, it must be done
    * explicitly after calling this method.
    *
    * @param name
    *          - The name of the bank.
    * @param money
    *          - The money to add to the bank.
    * @param mustExist
    *          - Whether he bank account must already exist.
    * @return True if any changes were made, false otherwise.
    */
    public boolean addBankMoney(String name, int money, boolean mustExist)
    
    /**
    * Checks if a bank account exists in the economy. The name of the bank must
    * be an exact match, though the name is not case sensitive.
    *
    * @param name
    *          - The name of the bank.
    * @return Whether the bank account exists.
    */
    public boolean bankExists(String name)
    
    /**
    * Creates the given bank account. If a bank with this name already exists,
    * nothing happens.
    *
    * @param name
    *          - The name of the bank to create.
    * @return True if the bank was created, or false if a bank with that name
    *        already exists.
    */
    public boolean createBank(String name)
    
    /**
    * Removes the given bank account. Members of the account are not notified of
    * the removal. If no bank with this name exists, nothing happens.
    *
    * @param name
    *          - The name of the bank to remove.
    * @return True if the bank was removed, or false no bank with that name
    *        existed.
    */
    public boolean removeBank(String name)
    
    /**
    * Adds an owner to the given bank account. Owners can withdraw funds from the
    * account and add or remove other owners and members. If the name is already
    * a member, they are promoted to an owner. The name will not be added if it
    * is null, empty, or a duplicate. If the bank account doesn't exist and the
    * mustExist flag is set to false, one by the given name is created first. The
    * name of the owner will be added regardless of whether they are online or
    * actually exist.
    *
    * @param bank
    *          - The name of the bank.
    * @param owner
    *          - The name of the owner to add.
    * @param mustExist
    *          - Whether the bank account must already exist to add an owner.
    * @return True if the owner was added, or false if otherwise. False may be
    *        returned either because the bank doesn't exist and mustExist was
    *        true, or because an owner by this name already exists.
    */
    public boolean addBankOwner(String bank, String owner, boolean mustExist)
    
    /**
    * Adds a member to the given bank account. Members can withdraw funds from
    * the account. If the name is already an owner, they are demoted to a member.
    * The name will not be added if it is null, empty, or a duplicate. If the
    * bank account doesn't exist and the mustExist flag is set to false, one by
    * the given name is created first. The name of the member will be added
    * regardless of whether they are online or actually exist.
    *
    * @param bank
    *          - The name of the bank.
    * @param member
    *          - The name of the member to add.
    * @param mustExist
    *          - Whether the bank account must already exist to add a member.
    * @return True if the member was added, or false if otherwise. False may be
    *        returned either because the bank doesn't exist and mustExist was
    *        true, or because a member by this name already exists.
    */
    public boolean addBankMember(String bank, String member, boolean mustExist)
    
    /**
    * Removes the given owner or member from the given bank account.
    *
    * @param bank
    *          - The name of the bank.
    * @param player
    *          - The name of the owner or member to remove.
    * @return True if an owner or member was removed, or false if otherwise.
    *        False may be returned either because the bank doesn't exist or
    *        because no player by this name was registered to it.
    */
    public boolean removeBankPlayer(String bank, String player)
    
    /**
    * Checks if the given name is an owner of the bank account.
    *
    * @param bank
    *          - The name of the bank.
    * @param owner
    *          - The name of the owner to check for.
    * @return True if the name is an owner, or false if otherwise. False may be
    *        returned either because the bank doesn't exist or because the given
    *        name is not an owner.
    */
    public boolean isBankOwner(String bank, String owner)
    
    /**
    * Checks if the given name is a member of the bank account. Note that owners
    * are not considered to be members in this context and that this method will
    * return false if the name of an owner is provided.
    *
    * @param bank
    *          - The name of the bank.
    * @param owner
    *          - The name of the member to check for.
    * @return True if the name is a member, or false if otherwise. False may be
    *        returned either because the bank doesn't exist or because the given
    *        name is not a member.
    */
    public boolean isBankMember(String bank, String member)
    
    /**
    * Sends a message to all online owners and members of the given bank account.
    * If no bank account exists by this name, nothing happens.
    *
    * @param bank
    *          - The name of the bank.
    * @param message
    *          - The message to send to the bank's members.
    * @param sender
    *          - The name of the sender. If the sender is a member of the bank,
    *          they are not sent the message. Leave this null to send the message
    *          to all of the members.
    */
    public void tellBankMessage(String bank, String message, String sender)
    
    /**
    * Sends a message to all online owners and members informing them of how much
    * money this bank account has. This should not be confused with
    * tellBankBalanceToPlayer(), which sends this message to a specified player.
    * This method may be useful in a context where all members were just notified
    * of a change and you wish to follow it with the new balance of the account.
    * If the bank account doesn't exist, nothing happens.
    *
    * @param bank
    *          - The name of the bank.
    * @param name
    *          - The name of the player.
    */
    public void tellBankBalance(String bank)
    
    /**
    * Sends a message to the given player informing them of how much money this
    * bank account has. This should not be confused with tellBankBalance(), which
    * sends this message to all members of the account. If the player is not
    * online, or if the bank account doesn't exist, nothing happens.
    *
    * @param bank
    *          - The name of the bank.
    * @param name
    *          - The name of the player.
    */
    public void tellBankBalanceToPlayer(String bank, String player)
    
    /**
    * Gets the initial money setting. This is how much money brand new players
    * are initialized with when they first enter the economy.
    *
    * @return The initial money.
    */
    public int getInitialMoney()
    
    /**
    * Gets the wage interval. This is how many units of time it takes for one
    * wage to elapse. The unit is specified by getWageIntervalUnit(), and should
    * be either seconds, minutes, hours, days, or weeks.
    *
    * @return The wage interval.
    */
    public int getWageInterval()
    
    /**
    * Gets the wage interval unit of time based on the current wage interval
    * multiplier.
    *
    * @return The unit of time. If the multiplier is 0, "none" is returned. If
    *        the unit can't be determined, "unknown" is returned. Return values
    *        are all lowercase and singular.
    */
    public String getWageIntervalUnit()
    
    /**
    * Gets the name of one unit of currency. This name is not capitalized and
    * should be singular. Ex: "coin"
    */
    public String getMoneyName()
    
    /**
    * Gets the name of a pluralized unit of currency. Ex: "coins"
    */
    public String getMoneyNamePlural()
    
    /**
    * Gets the name of one capitalized unit of currency. Ex: "Coin"
    */
    public String getMoneyNameCaps()
    
    /**
    * Gets the name of a capitalized and pluralized unit of currency. Ex: "Coins"
    */
    public String getMoneyNamePluralCaps()
    
    You may notice that there are some other methods, as well as some static variables. These are subject to change without warning and should never be utilized by your plugin. The methods listed above, however, will (hopefully) never need to be changed. In the event that they need to be altered, I will try to provide ample warning.​



    Download:

    -----------------------​

    Planned Features:
    • SQL support.
    • Allowing brackets to use different wage intervals.
    • Tax brackets. These brackets would take money from users and give it to another player or a bank account.
    Changelog:

    Show Spoiler

    0.6.2
    • Added bank deposit command to mirror the withdraw command. The pay command still works on banks.
    • Added several command aliases. Included is the ability to use "br" as a substitute for the "bracket" commands, and "ba" for "bank" commands.
    • Players are notified when a bank is created with them listed as an owner.
    • Made internal changes to support Bukkit build 612.
    • The plugin will now catch exceptions thrown by Phoenix Permissions and toggle phoenix-permissions off temporarily.
    • Fixed a notification bug when adding bank members whose names are a component in the names of other players.
    0.6.1

    • Fixed a bug where bank accounts duplicated after using the reload command.
    • The "banks" and "brackets" commands now use their singular forms ("bank" and "bracket").
    • Renamed BOSEconomy.admin.brackets and BOSEconomy.admin.banks to their singular forms.
    0.6.0 (Unreleased)

    • Fixed an exception when using online-wages with the wage-interval set to 0.
    • Added bank accounts and several commands to work with them.
    • Added several bank methods for other plugins to interface with.
    • Added BOSEconomy.admin.banks permission.
    • Restructured permissions slightly.
    • Unhandled command exceptions now inform the user who sent the command and prompt them to tell a server owner about it.
    • There is now a brief time limit between pay commands to prevent excessive payment spamming.
    0.5.0

    • The Permissions plugin is no longer required for BOSEconomy.
    • Added 'op-permissions' setting which gives ops permissions to all commands when enabled.
    • Added 'phoenix-permissions' setting to utilize TheYeti's Permissions ("Phoenix") plugin when enabled.
    • Added race-condition protection to file writing.
    • Added 'online-wages' setting to pay players based on online playtime instead of over a specific time interval.
    • Altered money.txt to include the online playtime of the user for the online-wages system.
    • Forced to remove 'command-label' option due to changes in the Bukkit API.
    • Added support for interaction with other plugins.
    • Players are now automatically registered into the economy for being online while the plugin is active.
    0.4.1 (First Public Release)

    • The average income now displays two decimal places.
    • Made some minor code modifications in preparation for a public release.
     
    efstajas, Ragor and Naruchico like this.
  2. Offline

    Daninator510

    Hey Guys,
    I love this plugin because it was so easy to install but now I have a little problem.
    In the properties file I set the wage-interval to 15. But I don't know how to set the money, that the players get after the 15 minutes. How to do this? I can't find anything in the config files!
     
  3. Offline

    Ozonepheonix

    when i try to create a bank it just brings up the help, im using build 733, i know it's for 714 but usually plugins work for both builds
     
  4. Offline

    xplosion545

    You should first give them a job. Just go to brackets and make some jobs, do it like this:
    Guard 20
    Headguard 30
    Lumberjack 15
    King 60
    Soldier 18
    (the number represents their wages)

    When this is done add the jobs to the players in the textfile users.
    Person1 Lumberjack
    You can add multiple jobs
    Person2 Lumberjack,Soldier,Guard

    Hope this helped.
     
  5. Offline

    Daninator510

    Ah, thank you very much!
    Now I know! :)
     
  6. Offline

    Aerunaur

    Hello everyone... I am trying to create a really flexible RP server... however, my dream will not be accomplished without different currencies! I am trying to create a world where there are multiple countries with multiple currencies and whose values go up and down, like real-world economy. This is probably much more complicated than it sounds, however, this is my suggestion. Please reply if you like it :)
     
  7. Offline

    zerstreut

    It works on b733
     
  8. Offline

    MrChang

    For some reason, me nor the Owner can use /econ add [name] [amount]. It just keeps taking us to the /econ help menu
     
  9. Offline

    Cosine

    This sounds like an interesting idea, but I'll have to give some thought to how I would go about adding it in. I've done some significant overhauls to the brackets in the work-in-progress version 0.7.0, and would like to release a version with them before trying to add more complications.

    I like the idea, but you are correct in that it's pretty complicated and wouldn't mesh well with the system I currently have in place. I might try to add it in a future update, but it'll take a lot of planning to get it to play nicely with the rest of the plugin.
    Which add command are you trying to use? There is one for money (/econ add), one for brackets (/econ br add), and one for banks (/econ ba addmember | /econ ba addowner).
     
  10. Offline

    Cookies326

    Could you make SQL support optional? I don't plan to use MySQL or SQLite. I find it very hard to understand or use. If you could, thanks a lot.
     
  11. Offline

    Cosine

    Don't worry; I'll be supporting both SQL and flatfiles for all aspects of BOSEconomy. There will be an option to choose which one the plugin uses.
     
    Cookies326 likes this.
  12. Offline

    Cookies326

    Thanks a lot man.
     
  13. Offline

    kevin cole

    okk im a complete noob but how do i install when i download the .zip i get a folder with a cosine folder, a META-INF folder, a permissions.jar and a plugin.yml no BOSEconomy.jar PLEASE HELP HOW DO I INSTALL??!?!
     
  14. Offline

    cpalms

    Would it be possible to use Towny with this plugin?

    Or would that have to be set up by the guys working on the Towny plugin?
     
  15. Offline

    xZise

    I'm trying to include the support of your economy system, but for reason it doesn't create a new account, after adding money to it:
    BOSEconomy e.addPlayerMoney("foo", 10, false);
    Then I call “/econ view foo” and it tells me, that there is no user foo.

    Also I couldn't call this methods from within the console. Would be nice if you support this.

    And there is no command to add a account with commands? So that I could test if it works when I'm creating the account manually.

    Fabian
     
  16. Offline

    Cosine

    I'm not sure how you're opening this, but you appear to have opened the BOSEconomy.jar file itself. You should be downloading a file called BOSEcon070.zip. Open just this file with the utility of your choice (Winzip, Winrar, 7Zip, etc) and extract BOSEconomy.jar. Put the .jar file in your plugins folder in the server's directory and it should run like any other plugin. There is no need to open the .jar file.
    Towny would have to add support for BOSEconomy.
    The in-game commands for BOSEconomy only detect players who are currently online. I've been thrashing over a good solution to this that doesn't disrupt the ability to use partial name matches on online players for these commands. The primary issue I face is partial name matches inadvertently tagging an offline account when the user intended to match an online player. The name absolutely has to match the offline account since it would otherwise be impossible to match this account at all while a player containing their name was online. I might remove partial matches from all commands except common payments, though I'm certainly open to suggestions before I commit to this. I might end up making it an option in the properties file.

    Regardless, the player "foo" should be in the plugin files despite not appearing when using the view command. Were a player named "foo" to join the server, they should have whatever money you have been giving their account.

    There is no in-game command to add accounts because it isn't possible to access an offline account at the moment and therefore the command would serve no purpose. The account is created the instant the player first logs on. I would add such a command whenever I implement the ability to modify offline accounts.

    Lastly, I do apologize for not adding console command support yet. I've been meaning to, but its an objective on a rather large to-do list. I'm still finishing up this semester of college and haven't had the chance to make any progress on 0.7.0.
     
  17. Offline

    xZise

    Hmmm I have following method:
    Code:
        /**
         * Expands the name, so it match a player (if possible).
         *
         * @param name
         *            The primitive name.
         * @param server
         *            The server where the player is searched.
         * @return The name of a player on the server, if the name matches anything.
         *         Otherwise the inputed name.
         * @see Uses {@link Server#getPlayer(String)} to determine the player object
         *      to the name.
         */
        public static String expandName(String name, Server server) {
            Player player = server.getPlayer(name);
            return player == null ? name : player.getName();
        }
    So if the player “foo” is online, and you call this method with “oo” it will return the foo player object. If there is no player offline matching this name, it will return simply the name.

    And maybe add a “view-offline” command. So you don't need to reconfigure BOSEconomy every time :)

    Fabian
     
  18. Offline

    ParkerReno

    Is this working with 740+?
     
  19. Offline

    xZise

    It is working with 714 (by the official) and 733 by me. And as there should all plugins from 714/733 working with 740/766, I think so.

    Fabian
     
  20. Offline

    Bharel

    Suggested feature: Bank areas
     
  21. Offline

    MrChang

    Which add command are you trying to use? There is one for money (/econ add), one for brackets (/econ br add), and one for banks (/econ ba addmember | /econ ba addowner).[/quote]

    I got it, just had to set Phoenix permissions to false and OP to true
     
  22. Offline

    Lanuk

    Sorry, I am not the smartest child in the world... but what do brackets do exactly? :3

    Oh and another question. I have a system that allows players to come down to my bank and buy currency for minerals. I know iConomy allows players to get currency from a chest shop or something for trading a specific amount of a specific item, but is there a plugin that helps BOSEconomy do the same thing? Constantly running down to the shop and selling currency is a pain for me.

    And 1 more thing. What are your opinions on this... I don't have chest shops or anything because I dislike the set prices of items. My server members want flexibilty so they can price how they like (of course I have the amount minerals should cost for players to base their prices off of) but they also would really like automatic selling. Is there a way to do this? Can iConomy do this? Should I just move to iConomy afterall?

    Help would be appreciated, thanks!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  23. Offline

    timmytimster

    Tbh, the only thing that is stopping me from using this is towny. I wish they would add support for this plugin..............
     
  24. Offline

    Jotschie

    Does BOSEconomy support decimal numbers? I use this economy plugin with RealShop, and I just switched from iConomy to BOSEconomy. With iConomy decimal numbers worked...
     
  25. Offline

    xZise

    Look at the API specifications: Only integers as money values.

    Fabian
     
  26. Offline

    Stanly

    why not 766?
     
  27. Offline

    xZise

    Why not not 766? What do you want to say?

    Fabian
     
  28. Offline

    riuthamus

    Um, it works with 766+, the Main coder of this has been gone while he is doing finals so, nothing has been done. I am sorry for our delay. Upon his return we will be adding in the discussed features. To make the point. THIS DOES work with v766

    In the next version we will be adding decimal support. Its less clean but many people like it so we will add support for it. Plus, that means our server can get rid of the "Yen" effect as we call it! :p We added two 0's to our base price to make it act like decimals, god some of those numbers are big!

    This is not a plugin that deals with the distribution of items. The point of this plugin is to provide an econ system that is light weight and simple to use that can be interfaced with other plugins to provide full functionality. For both of your questions the answer is a GOOD shop plugin.

    http://forums.bukkit.org/threads/ec...op-for-major-economy-plugins-766.4150/page-57

    Added support for BOSEcon and is one of the best shop plugins I have seen thus far. Showcase is another, but that just came out and has a few bugs still. If you want a system where player can give you items for money just setup the sell on one of the shops and no buy! Example, make a chest that has the buy price of 0:5 so when you sell to the shop you get 5coins per item/stack you sell.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  29. Offline

    Jonathan Thorpe

    I use BOSEconomy in conjuction with RealShops, superb combination! The only things I would like to see in BOSEconomy are related to banking... how about wildcard support? This would be great when you want to deposit ALL your pocket currency into your account, or withdraw ALL currency from your account to your pocket. Could use the * symbol in place of the amount, e.g. "/econ bank deposit SomePlayer *" The other feature I would like to see is a removal of the "cooldown" for deposits... you can withdraw multiple times in quick sucession, but not deposit, which is a pain in the arse.
     
  30. Offline

    Plague

    cb 714 - inactive
     
  31. Offline

    riuthamus

    This plugin is not inactive. The plugin works 100% with 803 and 815 builds. There is no reason to label it inactive. Our plugin writer is taking care of college finals and I have no way to update the topic since its not shared permissions or anything.
     
Thread Status:
Not open for further replies.

Share This Page