Advertisement
cgrunwald

Untitled

Jan 2nd, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.67 KB | None | 0 0
  1. 3. List of In-Game Commands <CMDS>
  2.  
  3. How to interpret these commands:
  4.     [ ] - the parameter is optional.
  5.     < > - the parameter is required.
  6.     key:value - you must specify the parameter as key:XXX where XXX is the
  7.                 value for that key.
  8.     ' ' - the text included in single quotes must be typed as they appear.
  9.     | - the parameter can be specified as either what is on the left of the
  10.         pipe or on the right.
  11.     NOTE: key:value parameters can be specified in any order.
  12.  
  13. /money <balance|-b> [playerName|'public']
  14.     Checks your current balance. If the optional parameter 'public' is provided
  15.     and the player has administrator privelages, the amount of money in the
  16.     public fund is returned. Administrators can check the balance of any
  17.     player.
  18.  
  19. /money <pay|-p> <to:playerName> <amount:paymentAmount>
  20.     Sends payment to another player. If the player is offline but they have a
  21.     balance, payment is still sent. The payment amount must be a positive
  22.     number and the player sending payment must have at least that amount in
  23.     their personal balance. If the payment is successful, the payment amount is
  24.     subtracted from the sender's balance and deposited into the receiver's
  25.     account.
  26.    
  27. /offer <add|-a> <item:itemName> <amount:itemAmount|'all'> <price:unitPrice>
  28.     Puts an item up for offer. The player putting items up for offer must be in
  29.     a trading area to offer items (see Areas, below). The amount must be a
  30.     positive number (optionally specified as 'all') and the player must have
  31.     that many items available in their inventory. The unit price is the price
  32.     per item, and must be a positive number. Because all money is specified to
  33.     two decimal places, the smallest unit price is 0.01. If the offer is
  34.     successfully placed, the specified number of items (or every item if the
  35.     player offered 'all') are removed from the player's inventory, and they
  36.     receive a unique ID for their new offer. This offer ID is used for other
  37.     commands (see /offer remove). The names of (almost) every item are defined
  38.     in Item.java (see \src\Item.java).
  39.    
  40. /buy <item:itemName> <amount:itemAmount> <price:unitPrice>
  41.     Attempts to buy items up for offer. The plugin attempts to find all sellers
  42.     for the specified item and get the best offer for the player, looking only
  43.     at offers whose unit price is less than or equal to the unit price the
  44.     player specified. To buy items the player must be in a trading area (see
  45.     Areas, below). If an offer was found and the transaction was successful,
  46.     the player received the items and payment is sent from the buyer's account
  47.     to the seller's account (even if they are offline). If the seller is
  48.     online, they are notified of the sale. The plugin will attempt to buy all
  49.     smaller offers before moving on to larger offers in an attempt to get as
  50.     many items for the smallest price. However, if it can't find any remaining
  51.     offers the buyer is notified and the remaining transaction is cancelled.
  52.  
  53. /offer list [seller:playerName] [type:itemName] [maxPrice:unitPrice]
  54. [page:pageNumber]
  55.     Lists all current offers. The offers are specified as (quantity itemName,
  56.     unitPrice). If the player owns that particular offer, its offer ID appears
  57.     inside square brackets ([]). Optionally, the player can specify a name and
  58.     only offers by that person will be shown.
  59.    
  60. /offer <remove|-r> [id:offerId|'all' | item:itemName]
  61.     Removes an offer based on its offer ID. To remove an offer, you must either
  62.     be the owner of the offer or have administrative privelages. Optionally,
  63.     you may specify 'all', which removes all of your current offers. When an
  64.     offer is removed, the items are returned to their owner. If they can't hold
  65.     all the items in the offer, they get as many as they can hold and the
  66.     remaining amount is left up for offer until the player can make room in
  67.     their inventory. Now you can also specify the name of the item to remove if
  68.     you have several offers for the same item.
  69.    
  70. /offer listen <itemName|'none'> [itemName2] [itemName3] ... [itemNameN]
  71.     Listens for certain items to be put up for offer. Whenever an item you're
  72.     listening for is put up for offer, you receive a notification. If the offer
  73.     changes (is removed or bought), you wil also receive a notification. If you
  74.     attempt to listen for an item again, you will no longer listen for that
  75.     item (for example, typing '/offer listen coal' and then '/offer listen coal'
  76.     again will cause you to not be listening for coal anymore). Optionally, you
  77.     may specify 'none' as the first parameter which causes all items you're
  78.     currently listening for to be cleared (you will no longer receive
  79.     notifications).
  80.    
  81. /money <give|-g> <amount>       (for administrators only)
  82.     Gives you a certain amount of money. However, this money doesn't come from
  83.     any location in particular, so this command creates "phantom money". The
  84.     amount can be positive or negative and it is added (or removed) from your
  85.     account.
  86.    
  87. /money <deposit|-d>
  88.     Deposits all 'valuable' items in your inventory and turns them into money.
  89.     Currently, valuable items are defined as iron bars, gold bars, diamonds,
  90.     and their respective blocks. The exchange rate is currently fixed but this
  91.     will change in future updates. Currently the process is irreversible. The
  92.     player must be in a bank area to make a deposit. Iron bars are worth 1.00,
  93.     gold is worth 10 times iron, diamond is worth 10 times gold, and blocks
  94.     are worth 9 times the value of their components.
  95.    
  96. /money <withdraw|-w> <amount>
  97.     Attempts to withdraw money. You must be in a banking area to withdraw
  98.     money, and you must have at least the amount you're withdrawing in your
  99.     account. When withdrawing money, items of the highest value are withdrawn
  100.     first, then smaller denominations until either all the money has been
  101.     withdrawn or the denominations don't allow further withdrawal. By default,
  102.     the smallest denomination is 1, so fractional withdrawals are impossible.
  103.    
  104. /area <add|-a> <'trade|personal|bank'>
  105.     Allows you to define an area (see Areas, below). Each type of area costs a
  106.     different amount per square block. Typing the same command again will cause
  107.     you to no longer define areas (for example, typing '/area add trade' and
  108.     then '/area add trade' again will cause you to no longer be defining a
  109.     trade area). First, you right click one corner of the new area with nothing
  110.     in your hands, then the other corner, then the floor, and finally the
  111.     ceiling. The cost for an area depends on its size (floor size, corner to
  112.     corner) and vertical space (floor to ceiling). If you can't afford the area
  113.     you will receive a notification and it will not be created. Areas can't be
  114.     placed in areas owned by other people. However, it is possible to put trade
  115.     areas and bank areas inside personal areas that you own. Trade areas and
  116.     bank areas have a maximum size which is defined in economy.properties (see
  117.     economy.properties, below). When you define a new area, you're given a
  118.     unique area ID which identifies an area to its owner and is used for other
  119.     area-related commands (see /area name, /area remove, /area give).
  120.    
  121. /area <name|-n> <areaId> <newName>
  122.     Renames an area based on its area ID. To rename an area you must either be
  123.     the owner or have administrative privelages. The cost to rename an area
  124.     depends on the size and area type. The first renaming after an area is made
  125.     is free. The money from renaming areas goes into the public fund (see
  126.     public fund, below).
  127.    
  128. /area <list|-l> [owner:playerName] [type:areaType] [page:pageNumber]
  129. [sort:'distance|name|owner|price'] [order:'asc|desc']
  130.     Lists all areas currently defined. All trade and bank areas will be
  131.     visible, but only personal areas that the player owns will be displayed.
  132.     Optionally, the player may specify a player's name and all areas that the
  133.     player owns will be displayed (excluding personal areas).
  134.    
  135. /area <remove|-r> <areaId>
  136.     Removes an area based on its area ID. Only the owner of the area or a
  137.     player with administrative rights can remove an area.
  138.    
  139. /area give <id:areaId> <to:playerName>
  140.     Transfers an area to another player. Only the owner or a player with
  141.     administrative privelages can transfer an area. The cost to transfer an
  142.     area depends on the area's size and type, and the money from transfers goes
  143.     into the public fund (see public fund, below).
  144.    
  145. /area get [playerName]
  146.     Gets the name or coordinates of the area the player is in. Optionally, they
  147.     may specify the name of a player and the area that player is in will be
  148.     returned.
  149.    
  150. /saveEconomy    (recommended for administrators)
  151.     Saves the economy files. Contrary to popular belief, this will not solve
  152.     the economic crisis.
  153.    
  154. /money <lottery|-l> (administrators only)
  155.     Attempts to run a lottery. By default, lotteries can only be run every 60
  156.     minutes. A player online is randomly chosen and a fraction of the public
  157.     fund is rewarded as the prize. Every player has the same chance of winning,
  158.     and the amount rewarded is proportional to the number of people online as
  159.     well as the amount of money in the public fund. A lottery can only be run
  160.     if there are 2 or more players online. A property called playersToHalf (see
  161.     economy.properties, below) is used to determine the fraction of the public
  162.     fund to reward. When the number of players online is equal to
  163.     playersToHalf, the amount rewarded will be exactly half of the public fund.
  164.    
  165. /auction <add|-a> <item:itemName> <amount:itemAmount|'all'> <start:startingBid>
  166. [time:length]
  167.     Creates an auction. You must be in a trading area to make an auction. Once
  168.     the auction is created, it is not started until the player issues the
  169.     "/auction start" command.
  170.  
  171. /auction <remove|-r>
  172.     Removes your current auction, whether it is running or not.
  173.    
  174. /auction <start|-s>
  175.     Starts your auction once it has been created. Once the auction ends, if
  176.     someone has bid on your auction, they will receive the items and you will
  177.     receive payment.
  178.    
  179. /auction <bid|-b> <seller:playerName | id:auctionId> <bid:amount>
  180.     Bids on an auction. You must be in a trading area to bid on an auction,
  181.     and you must bid at least 0.01 higher than the current bid.
  182.    
  183. /auction <list|-l> [seller:playerName] [item:itemName] [page:pageNumber]
  184.     Lists all auctions that fit the optional criteria. Currently, each player
  185.     may have only 1 auction at a time.
  186.    
  187. /bank <contents|-c>
  188.     Displays the contents of your bank account. You must be inside a banking
  189.     area to check your account.
  190.  
  191. /bank <deposit|-d> <item:itemName> <amount:itemAmount|'all'>
  192.     Deposits an item or items into your bank account. You must be inside a bank
  193.     area to make a deposit.
  194.  
  195. /bank <withdraw|-w> <item:itemName> <amount:itemAmount|'all'>
  196.     Withdraws an item or items from your bank account. You must be inside a
  197.     bank area to make a withdrawal.
  198.    
  199. 4. Areas <AREA>
  200.     4.1 Trade Areas
  201.         Trade areas are locations where players can buy and sell items (see
  202.         /buy and /offer, above). By default, the color for a trade area is
  203.         yellow. Trade areas cost 1.0 per square block of floor space, and can
  204.         be at most 15 squares long in one direction and have a maximum area of
  205.         144 square blocks.
  206.     4.2 Personal Areas
  207.         Personal areas are locations which have protection from other players.
  208.         In a personal area, only the owner can place or remove blocks. Chests
  209.         and furnaces are still visible to other players, however, and those
  210.         items are not necessarily safe. Personal areas have no size
  211.         restrictions. By default personal areas appear as light blue. Personal
  212.         areas cost 3.0 per square block of floor space.
  213.     4.3 Bank Areas
  214.         Bank areas are locations where players can make deposits (see /deposit,
  215.         above). Bank areas are limited to 25 blocks to a side or 400 square
  216.         blocks of floor space. By default, banks appear as green. Bank areas
  217.         cost 5.0 per square block of floor space.
  218.     4.4 Mobs
  219.         Mobs are set not to spawn inside of any defined areas. However, mobs
  220.         will spawn directly outside of areas which might have adverse effects.
  221.        
  222. 5. The Public Fund <PUFU>
  223.     5.1 Motivation and Purpose
  224.         Whenever a player buys an area, renames an area, or transfers an area,
  225.         the money goes into a public fund. The purpose of the public fund is to
  226.         balance out wealth between all players. Money will be returned to
  227.         players from the public fund from a periodic lottery event.
  228.     5.2 Uses
  229.         Whenever a new player joins the server (they don't have a balance), a
  230.         certain amount of money is given to them from the public fund. This
  231.         amount is defined in economy.properties (see economy.properties,
  232.         below).
  233. 7. Using Signs <SIGN>
  234.     Signs can now be used to buy and sell items. To sell an item, you must
  235.     place a sign and put the following text on it:
  236.    
  237.     [sell]
  238.     <amount | 'all'>
  239.     <itemName>
  240.     <unitPrice>
  241.    
  242.     So if you wanted to sell all your dirt for 1.00 each you'd type:
  243.    
  244.     [sell]
  245.     all
  246.     dirt
  247.     1
  248.    
  249.     and your offer will be created just as if you'd typed "/offer add item:dirt
  250.     amount:all price:1". If you want to buy an offer on a sign, just right
  251.     click on it. You will buy as many as you can. In a future update I may make
  252.     it so you can buy parts at a time.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement