[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

    UnderdogMac

    man, i love you plugin, keep it up!
     
  3. Offline

    Codisimus

    All my plugins support BOSEconomy they are located in my signature. I'm not saying you have to give links to all of them, just thought you'd like to know.
     
  4. Offline

    Cosine

    You'll have to ask Codisimus about that in his turnstile plugin thread. The turnstile plugin interfaces with BOSEconomy, but it's a separate plugin and he's the one developing it.
     
  5. Offline

    Codisimus

    I informed him that that issue was with Turnstile and not BOSEconomy and have fixed it
     
  6. Offline

    Aricus

    Is Boseconomy broken? I downloaded the newest one, type econ and it throws an unhandled exception. Any ideas?
     
  7. Offline

    Cosine

    Post the entire error, preferably in [ CODE] brackets. I'll look at what might be causing it.
     
  8. Offline

    Aricus

    Code:
    09:50:51 [INFO] econ
    09:50:51 [SEVERE] java.lang.NullPointerException
    09:50:51 [SEVERE]       at cosine.boseconomy.CommandManager$BOSCommand.hasPermis
    sion(CommandManager.java:130)
    09:50:51 [SEVERE]       at cosine.boseconomy.CommandManager$BOSCommand.canUse(Co
    mmandManager.java:121)
    09:50:51 [SEVERE]       at cosine.boseconomy.CommandManager$MoneyCommand.tryComm
    and(CommandManager.java:227)
    09:50:51 [SEVERE]       at cosine.boseconomy.CommandManager.tryCommands(CommandM
    anager.java:68)
    09:50:51 [SEVERE]       at cosine.boseconomy.BOSEconomy.onCommand(BOSEconomy.jav
    a:139)
    09:50:51 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    09:50:51 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    09:50:51 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:229)
    09:50:51 [SEVERE]       at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:645)
    09:50:51 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:608)
    09:50:51 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:602)
    09:50:51 [SEVERE]       at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    09:50:51 [SEVERE]       at net.minecraft.server.NetworkManager.a(SourceFile:230)
    
    09:50:51 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:76)
    09:50:51 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    09:50:51 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    09:50:51 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    09:50:51 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    09:50:51 [INFO] BOSEconomy Warning: Unhandled exception generated by command fro
    m user 'Mairic'! Tell your programmer about this!
    
    Here is the error. From the looks of it BOS is still paying out wages, but none of the commands work

    Thanks in Advance
     
  9. Offline

    riuthamus

    Looks like your permissions file is fucked up, all of them deal with that.... Also, what version of Craftbukkit are you using?
     
  10. Offline

    Aricus

    Ok, I will try reinstalling/setting up my permissions. I was using the permissions plugin then switched to GroupManager. Maybe somehow in the switch something messed up. BOSE was the only one throwing out an error. Will let you know if redoing the permissions fixes it.

    Thanks!

    This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)

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

    riuthamus

    Ill assume you resolved the issue!
     
  12. Offline

    darthsiddious

    is there a way to change accounts manualy through a text file or something?
     
  13. Offline

    Strongit

    Does anyone know if this works for build 612?

    EDIT: Never mind, can't join the server with this one running. Here's the error: [SEVERE] Nag author: 'Cosine' of 'BOSEconomy' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
     
  14. Offline

    riuthamus

    This does not work on 612 right now, or at least, not the 61 version, we have a 62 version but I just got home and have yet to test it. I will be posting it very very very very very soon.

    @darthsiddious yes you can modify the accounts through a text file, often I do this while I am on the server, its simple and easy to do.
     
  15. Offline

    darthsiddious

    ah good. now how do i get this to work with realshop?

    and i like to do the same thing too riuthamus
     
  16. Offline

    riuthamus

    You have to modify your realshop value to BOSEconomy

    Also, version 062 is up, cosine is posting it now. Make sure you backup up all your old files before updating. This is an UNTESTED build since we had no time to do it, and want you guys to have this system up as soon as possible. So report any issues or errors you get.
     
  17. Offline

    darthsiddious

    yeah, i just read his fourm, thanks. this looks really cool and i was looking at it before. I really like it alot. much easier to use then iconomy. ill give it a shot, but i am curious to know if you are aware of any other plugins that this will go with. right now you guys only have 6, but will there be more or do you you know?
     
  18. Offline

    Cosine

    Version 0.6.2 is up right now. The forums felt obligated to corrupt the entire bottom half of the post, so I'm in the process of fixing it so I can list the changes it made. Most importantly it supports Bukkit build 612.
     
  19. Offline

    riuthamus

    I am working very hard to get other plugins to support this one, takes time though. iConomy as the first created so many people got use to that. We provide easier solution in an more elegant method, it will be a matter of time before we are the standard, not the other way around! :p
     
  20. Offline

    darthsiddious

    well good. bookmarked and ive told my players to donate to my plugin developers. keep up the good work. hoping the first one is that bounty plugin. everyone wants that one on my server. lol.

    by the way, is there a tutorial of sorts? all i really need is how to do the brackets and setting up the pay for every friday.
     
  21. Offline

    riuthamus

  22. Offline

    darthsiddious

    well, ill give you the run down then and ill look into it. pretty much, we are a post roman/ pre dark ages based rp server. we have 3 classes with 3 sub classes each plus 4 unclasified classes. this is what i have so far.

    Slave 0
    Freeman 0
    Plebeian 0
    Equestrian 0
    Patrician 0
    Auxilium 2000
    Protector 3000
    Praefectus 5000
    Barbarian 0
    Scout 0
    Warlord 0
    Lord 10000
    King 1000000

    ofcourse im the king and the lords are my mods. the only people i want paid by the server are the soldiers, lord and myself. the lords pay their citizens however much they want, and the lords get more cash from the trade they get. so the richer the lord, the more citizens they can attract and the more each citizen gets paid. soldiers get paid no matter what the same ammount and the lords and i get paid a fixed ammount. slave is our punishment class and freeman is the server defult. i want everyone paid on friday, but only the people the server pays gets paid regardless if they are off or not. i have online wages set to false. are my settings correct? and how do i make sure they get paid friday? i would like the server to pay at midnight too. but yeah.
     
  23. Offline

    riuthamus

    Not sure I fully understand:

    1) You dont want your default class of citizens to get paid
    2) You do want your higher ups to get paid a value, but ONLY on friday

    Is that correct?
     
  24. Offline

    darthsiddious

    kinda. i know its a weird system. we just redid the rules two days ago.

    we have 3 classes, citizen, barbarian and army with 3 subclasses each. we also have 4 cities, one capital and 3 towns. each lord (moderator) rules one town, i rule the capital. each citizen belongs to one of thoes three towns, but cant belong to the capital. the lord pays their citizen only, however much they want based on their base pay of 10,000 and what they make on their chest shops (from real shop). now the army gets paid from the server since i pay them and i am the server. and barbarians, freemen and slaves dont get paid.

    i dont want citizens or barbarians to be paid by the server. i want only myself, lords and the army class to be paid every friday at midnight by the server. i hope thats a little clearer. its complex, i know, but thats what everyone wanted. lol. if you want a little more clairfication, here is our fourm page on minecraft.net. it will explain it in depth of what im trying to do.

    http://www.minecraftforum.net/viewtopic.php?f=1025&t=230753

    but to answer your question, in a nutshell, yes, thats exactily what i want.

    -edit: by the way, what is with the bank accounts? could you explain that to me too? i think i have a vague idea about it, but i would like to know more about it, like can i actually see what a person has and who it belongs to. and in regards to a tax system, will there be a way to tax bank accounts or only players directly? i have numerous ideas poping into my head now the more i read your plugin. thank you so much for your help.
     
  25. Offline

    darthsiddious

    ok, so here is a very basic question. is there support for decimals? when i tried, i didnt get that to work right.
     
  26. Offline

    rakiru

    I'm adding this to my server as I've always wanted a basic economy plugin (not something where everything else revolves around it) and it was suggested to me by a couple of regulars. It looks really good, and I'm just about to set it up, but the one suggestion I have is the option to use MySQL so it can be easily tied into a website (I saw this mentioned by someone else too).

    Edit: I've just set this up and it seemed to be going fine until I tried to use an admin command where it instead just showed me the help. I have * permission in GroupManager, and also tried the specific permissions in the original post.
     
  27. Offline

    Cosine

    There is currently only integer support, but I have plans for adding fixed-point decimal values in a future update. My primary concern is easing it in without breaking any supporting plugins.

    SQL support is in the to-do list, and will probably be the major feature in the update that follows v0.7.0 (the next update will feature tax brackets and several small improvements). As for your permissions problem, make sure that you have "phoenix-permissions" in the properties file set to true. If you still can't get it to work, post a copy of your permissions world.yml file and any other relevant information. Also make sure that your Permissions is up to date.
     
  28. Offline

    darthsiddious

    ok, what about chest shops being linked to a bank account for realshop? i know its not your plugin, but maybe you guys know something i dont. wouldnt hurt to ask.
     
  29. Offline

    riuthamus

    RealShop already supports us, and LocalShop will in the next release... so we have two now!
     
  30. Offline

    g00tch

    You guys need to get @jjfs85 BetterShop plugin support. That would be a huge benefit for those of use that aren't fans of chest based shops.
     
  31. Offline

    darthsiddious

Thread Status:
Not open for further replies.

Share This Page