This plugin adds a auctionhouse that players can use as a place to buy items from others.
This plugin requires my library plugin
AuraAPI.
Commands:
- Aliases: /auctionhouse, /auraah, /aah, /ah
/auraauctionhouse - Opens the auctionhouse.
/auraauctionhouse help - Shows the help menu.
/auraauctionhouse sell - Opens the sell menu.
/auraauctionhouse sell <price> - Sells the held item with the given price.
/auraauctionhouse expired - Opens the expired auctions menu.
/auraauctionhouse listed - Opens the listed auctions menu.
/auraauctionhouse cancelall - Cancels all your listed auctions.
/auraauctionhouse claimall - Claims all your expired auctions.
/auraauctionhouse admin reload
- Reloads the plugin.
/auraauctionhouse admin cancel all - Cancels all active auctions on the server.
/auraauctionhouse admin cancel player <player> - Cancels all auctions of the given player.
Permissions:
/auraauctionhouse - auraauctionhouse
/auraauctionhouse help - auraauctionhouse.help, auraauctionhouse.admin.help
/auraauctionhouse sell - auraauctionhouse.sell
/auraauctionhouse sell <price> - auraauctionhouse.sell
/auraauctionhouse expired - auraauctionhouse.expired
/auraauctionhouse listed - auraauctionhouse.listed
/auraauctionhouse cancelall - auraauctionhouse.cancelall
/auraauctionhouse claimall - auraauctionhouse.claimall
/auraauctionhouse admin reload
- auraauctionhouse.admin.reload
/auraauctionhouse admin cancel all - auraauctionhouse.admin.cancel.all
/auraauctionhouse admin cancel player <player> - auraauctionhouse.admin.cancel.player
This plugin uses bstats, if you don't want to contribute to bstats disable bstats in the bstats folder.
config.yml
Code (YAML):
#-----------------------------------------#
# #
# AuraAuctionHouse #
# by SpokenWig620933 #
# version: 1.0.3 #
# #
#-----------------------------------------#
general
:
# The order clicking the sorter will change it in.
# available: newest, oldest, cheap, expensive, (az, za (Seller name))
sorters
:
- 'newest'
- 'oldest'
- 'cheap'
- 'expensive'
- 'az'
- 'za'
# Restrictions to auctions.
restrict
:
# If the item pertains restrictions.
item
:
# Deny if the item is damaged?
damaged
: false
# Deny these enchantments.
enchants
:
- 'PROTECTION_EXPLOSIONS'
# Deny these materials.
material
:
- 'BEDROCK'
# Deny if the name contains any of these.
name
:
[
]
# Deny if the lore contains any of these.
lore
:
[
]
# Deny these gamemodes.
gamemode
:
- 'CREATIVE'
# Deny these worlds.
worlds
:
- 'disabled-world'
auction
:
# The max amount of auctions a player can list.
max
: 8
# Should it have them confirm to buy an auction.
confirm
: true
# The price the new auction is required.
# Changing this will not affect previous auctions.
price:
min
: 0.00
max
: 10000000.00
# The amount to multiply by as tax.
tax
: 1.00
prefix
: '$'
suffix
: ''
# How long until it should expire (in seconds).
# default: 2628000 (1 month).
expire
: 2628000
lang.yml
Code (YAML):
general:
gui:
auctionhouse:
title
: '&3AuctionHouse'
confirm:
title
: '&aConfirmation'
expired:
title
: '&cExpired'
listed:
title
: '&eListed'
sell:
title
: '&cSell'
player:
bankrupt
: '&cYou dont have enough money for that!'
invalid
: '&cThat player doesnt exist!'
price-invalid
: '&cThat is not a valid price! The price must be a min of
{min
} and max of
{max
}!'
purchased:
from
: '&aSomeone has bought your auction and you''ve gained
{price
}'
to
: '&aYou have successfully bought the auction for
{price
}!'
auction:
lore
:
- '&3
--------------------'
- '&eSeller
:
{seller
}'
- '&ePrice
:
{price
}'
- '&eExpiration
:
{expire
}'
- '&3
--------------------'
help
:
- '&b
------- &3&lAuraCommands &b
-------'
- '&7- &9
{cmd
} &7- &fOpens the auctionhouse.'
- '&7- &9
{cmd
} help &7- &fShows this.'
- '&7- &9
{cmd
} sell &7- &fOpens the sell menu.'
- '&7- &9
{cmd
} sell <price> &7- &fSells the item your holding.'
- '&7- &9
{cmd
} expired &7- &fOpens the expired items menu.'
- '&7- &9
{cmd
} listed &7- &fOpens the listed items menu.'
- '&7- &9
{cmd
} cancelall &7- &fCancel
all your listed items.'
- '&7- &9
{cmd
} claimall &7- &fClaim
all your expired items.'
- '&b
---------------------------------'
help-admin
:
- '&b
------- &3&lAuraCommands - Admin &b
-------'
- '&7- &9
{cmd
} &7- &fOpens the auctionhouse.'
- '&7- &9
{cmd
} help &7- &fShows this.'
- '&7- &9
{cmd
} sell &7- &fOpens the sell menu.'
- '&7- &9
{cmd
} sell <price> &7- &fSells the item your holding.'
- '&7- &9
{cmd
} expired &7- &fOpens the expired items menu.'
- '&7- &9
{cmd
} listed &7- &fOpens the listed items menu.'
- '&7- &9
{cmd
} cancelall &7- &fCancel
all your listed items.'
- '&7- &9
{cmd
} claimall &7- &fClaim
all your expired items.'
- '&7- &9
{cmd
} admin reload &7- &fReloads the plugin.'
- '&7- &9
{cmd
} admin cancel
all &7- &fCancel
all auctions.'
- '&7- &9
{cmd
} admin cancel player <player> &7- &fCancel
all auction from that player.'
- '&b
--------------------------------------'