Paste #32842: Edit of P#32841 - Untitled Paste

Date: 2016/04/18 01:05:47 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406


Provides an easy to use interface for simple GUI interaction with users.
Players can transform chests into personal shops (LocalShops), by simply attaching a specific sign (customizable).
Admins can limit how many chests can be created per player.
Players can create item offers inside their LocalShops. These offers will be accessible worldwide through shops the admin creates (GlobalShop).
Admins can limit how many offers each player is allowed to create.
Players are able to set price and amount through a GUI.
Admins can create auctions with infinite stock (AdminShops)
These AdminShops contain a SellAll function so players can get rid of their junk within seconds.
Admins can create GlobalShops, where all Player shops are combined and represented in a convenient location and easy to understand format. Here, players will be able to buy from other players LocalShops without visiting them physically.
GlobalShops can be created in many different variations:
They can look like the Creative Mode GUI, so everyone feels acquainted right away.
They can hold only one single item, multiple items or all available items.
If Admins decide to only show multible items in a GlobalShop, they are asked to create a “category”.
One category can contain multiple items. The order of the items,listed in the GUI, can be manipulated by SHIFT clicks (move item one slot to the right/left).
Categories will be stored in the database and can also be reused in other locations.
GlobalShops can contain either player auctions, admin auctions or both.
They can be bound to Holographs (requires the HolographicDisplay plugin).
This includes a nice looking floating item attached to the hologram!
They can be bound to Citizens NPCs (required the Citizens plugin).
This contains every mob available in vanilla Minecraft (Villagers, Enderdragon etc.).
GlobalShops can be bound to Signs.
The sign can stay on its own or can be combined with an Ender Chest. If you choose an Ender Chest, a floating item will spawn above the chest to indicate what kind of items are inside. (This does require the HolographicDisplay extension).
GlobalShops can also be bound to Item Frames. Like everything else, Item Frames are also completely protected from player and mob damage. However, admins can still rotate items inside the Item Frame with shift clicks. In case you disable this plugin, all related Item Frames will be cleared to prevent players from picking them up.
All auctions can be canceled by an admin. Of course players can always cancel auctions they have crated on their own.
Auctions will get a timestamp that indicated when they were created or bought. This timestamp will be displayed in a friendly to read way, like “16 minutes ago”.
Players can visit other player’s shops and buy from them. (Or just visit the GlobalShops)
Players can buy items from other players LocalShops with the /globalchestshop buy <itemName> command.
When players sell / buy from AdminShops they can choose a quantity from 1 - 64.
Items that don’t stack cannot be bought / sold with a quantity greater 1.
Inside GlobalShops, auctions are sorted by price. This allows users to find the cheapest offers right away.
Specific items can be banned from LocalShops.
If you like, AdminShops will be displayed next to the player’s auctions, so customers can see the price difference and decide if they want to buy from server or from other players.
Also the name of each player is attached to each auction. This allows players to support their friends in the global economy.
Admins have a nice GUI to see the sell and buy history of all players. This functionality can be given by an extra permission, so also trusted moderators can use it.
Players can see how much money they own (represented by a little icon inside referring GUIs) … no need to type " /money " after each transaction.
Players get asked every transaction/offer they make, in regards to if they really want to buy/sell an item. They will never buy something on accident again.
Player purchases can be broadcasted to the global server chat.
This plugin comes with full multiworld support. You can have different economies with different prices, different permissions inside different worlds.
BungeeCord support, connect multiple servers and share the same shops and auctions.
Have a tax on all player transactions (configurable).
Internally everything is handled by using UUID's.
Support for items with lore's, NBT-tags, enchantments, custom texts etc.
Customize the appearance of many buttons and colors.
Change the language files and translate the plugin into your own language.
MySQL based data storage (This is a requirement!).
Complex lag reduction through multithreaded implementation.
Supports Vault.

/globalchestshop | opens an overview of all auctions, requires VIP permissions
/globalchestshop buy <item> | requires VIP permissions
/globalchestshop sell | requires VIP permissions
/globalchestshop reload | reloads the plugin (admin permissions)
/globalchestshop reset| delete all player-shops (admin permissions)

Commands are actually not required, everything is accessible through signs, chests, NPCs or holographs.

<-------------------- Player -------------------->

GLOBALCHESTSHOP.PLAYER.CREATE_CHEST_SHOP.<worldGroup>
GLOBALCHESTSHOP.PLAYER.VISIT_OTHER_PLAYERS_SHOPS.<worldGroup>
GLOBALCHESTSHOP.PLAYER.OPEN_GLOBAL_SHOPS.<worldGroup>
GLOBALCHESTSHOP.PLAYER.OPEN_ADMIN_SHOP.<worldGroup>
GLOBALCHESTSHOP.PLAYER.BUY_FROM_ADMINSHOP.<worldGroup>
GLOBALCHESTSHOP.PLAYER.SELL_TO_ADMINSHOP.<worldGroup>

<-------------------- VIP -------------------->

GLOBALCHESTSHOP.VIP.OPEN_GLOBALSHOP_BY_COMMAND.<worldGroup>
GLOBALCHESTSHOP.VIP.CREATE_NEW_AUCTIONS_INSIDE_GLOBALSHOP_COMMAND.<worldGroup>
GLOBALCHESTSHOP.VIP.CREATE_NEW_AUCTIONS_INSIDE_BUY_COMMAND.<worldGroup>
GLOBALCHESTSHOP.VIP.BUY_COMMAND.<worldGroup>
GLOBALCHESTSHOP.VIP.SELL_COMMAND.<worldGroup>
GLOBALCHESTSHOP.VIP.EXCEED_AUCTION_LIMIT.<VIP_Group>.<worldGroup>
<-------------------- Moderator -------------------->

GLOBALCHESTSHOP.MODERATOR.SEE_PLAYERS_SHOPS.<worldGroup>

<-------------------- Admin -------------------->

GLOBALCHESTSHOP.ADMIN

<-------------worldGroups YAML ----------->
#    In this file you can customize what worlds share a single economy (WorldGroup).
#    Worlds that are not listed here will be ignored by the plugin.
#
#    WARNING: If you are running a network of servers with multiple instances of this plugin and 
#    they all share a single MySql-Database, it is very important every world in you Bungee-Network
#    has a unique name. Also you want to make sure this file looks the same on all your servers!
#
#
#    Once you are using this plugin inside a world, you should not rename the world later on!
#
#
#     Here is an example of how this file could look like:
#
#
#WorldGroup:
#  1:
#    - world
#    - world_nether
#    - world_the_end
#  2:
#    - world_skyBlock
#    - world_skyBlockLobby
#  3:
#    - plotWorld
#    - world_creative
#
# ___________________________________________________________________________________________________
WorldGroup:
  1:
    - world
    - world_nether
    - world_the_end
    - world_bifrost_end
    - world_wild


<--------------AUCTION LIMTIS YAML ------------>
#    In this file you can customize how many running auctions a player can have.
#    The maximum auction limit can be different for every WorldGroup.  
#    If you like, you can also define your own VIP_Groups, to privilege certain 
#    permission holders with a bigger limit. 
#
#
#
#     Here is an example of how this file could look like:
#
#WorldGroup:
#  1:
#    MaximumAuctionsPerPlayerInThisWorldGroup: 30
#    VIP_Groups:
#      vip1:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 20
#      vip2:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 40
#      vip3:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 60
#  2:
#    MaximumAuctionsPerPlayerInThisWorldGroup: 1000
#    VIP_Groups:
#      vip1:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 200
#      vip2:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 400
#      vip3:
#        Players_in_this_VIP_group_can_exceed_maximum_by: 600
#
#
#
#   Players with the permission:  - GLOBALCHESTSHOP.VIP.EXCEED_AUCTION_LIMIT.vip1.1
#    would be able to create 50 auctions (30 + 20) inside a world with the WorldGroup 1.
#    The permission build:  GLOBALCHESTSHOP.VIP.EXCEED_AUCTION_LIMIT.<VIP_Group>.<WorldGroup>
#
# ___________________________________________________________________________________________________
WorldGroup:
  1:
    MaximumAuctionsPerPlayerInThisWorldGroup: 3
    VIP_Groups:
      adventurer:
        Players_in_this_VIP_group_can_exceed_maximum_by: 1
      regular:
        Players_in_this_VIP_group_can_exceed_maximum_by: 5
      veteran:
        Players_in_this_VIP_group_can_exceed_maximum_by: 12
      moderator:
        Players_in_this_VIP_group_can_exceed_maximum_by: 17
      builder:
        Players_in_this_VIP_group_can_exceed_maximum_by: 22
      masterbuilder:
        Players_in_this_VIP_group_can_exceed_maximum_by: 27
      chief:
        Players_in_this_VIP_group_can_exceed_maximum_by: 32
      star:
        Players_in_this_VIP_group_can_exceed_maximum_by: 47
      superstar:
        Players_in_this_VIP_group_can_exceed_maximum_by: 97
      owner:
        Players_in_this_VIP_group_can_exceed_maximum_by: 1000

<------------ CONFIG YAML -------------> 
MySQL:
  host: 
  port: 
  database: 
  user: 
  password: 
  tablePrefix:_
  simultaneousOpenedConnections: 32
Appearance:
  Sign:
    localChestShop: '&a[LocalShop]'
    globalChestShop: '&a[GlobalShop]'
    adminShop: '&a[AdminShop]'
    seconLineColor: '&2'
    AllItems:
      signFooter: AllItems
      displayItem: COMPASS
    AllLocalShops:
      signFooter: all chest-shops
      displayItem: COMPASS
  buyButton: '323:0'
  sellButton: SIGN
  sellAllButton: '323:0'
  amountButton: '145:0'
  closeButton: '160:14'
  background: '160:15'
  showAuctionCountByAmount: false
  hideCategoryItemsNotContainingAuctions: false
  defaultShopTypForTheGlobalShopCommand: 1
Other:
  deleteLocalShopsWhenUnableToFindChest: false
  showAdminshopsInsideGlobalShops: true
  amountOfLocalChestShopsPerPlayer: 1
  buyCommandShowsOnlyAdminShops: false
  whenSearchFindsNoItemsShowAllItems: true
  escButtonLeadsToPreviousWindow: true
  playersCanDeleteShopThatStillContainAuctions: false
  pricePickerMultiplier: 1
  broadcastSells: true
  broadcastCreationOfNewAuctions: true
  allowShiftClicksForQuickBuy: true
  logTransactionsToFile: true
  auctionExpirationOffsetInDays: 7
  disableWorldGroups: false
Money:
  tax: 0.01%
  defaultInitialAuctionPrice: 0.01
  maximalPriceAnAuctionCanSellFor: 100.0


<------------ languageYAML ------------------>

Buttons:
  SellPrice:
    Title: '&6Sell Price'
    Description: '&7click to change the sell price'
  CancelAuction: '&cCancel this auction'
  SearchButton:
    Title: '&bSearch for an auction'
    Description: ''
  PageView:
    SinglePage: 'Page: %arg0'
    LastPage: Last Page
    CurrentPage: 'Page: %arg0'
    FirstPage: First Page
  DeleteShop: '&cDelete Shop'
  EditAdminShop:
    Toggle:
      'OFF':
        Description: '&9click to &aenable'
        Title: '&7AdminShop is &cdisabled'
      'ON':
        Title: '&7AdminShop is &aenabled'
        Description: '&9click to &cdisable'
    ExitSave:
      Title: Save and exit
      Description: '&7click here to exit'
  PolarQuestion:
    'YES': 'Yes'
    NoWithoutSave: '&cNo, leave WITHOUT saving!'
    SubmitBuy: '&cAre you sure to buy?'
    CreateAuction: '&cSure to create a new auction?'
    SuretoBuy: '&cAre you sure to buy?'
    SubmitSell: '&cAre you sure to sell?'
    'NO': 'No'
    CancelAuction: '&cAre you sure you want to cancel?'
  AuctionInfo:
    SellPriceEach: '&7Sell price each:  &c%arg0'
    Title:
      ERROR: not available
      AdminShop: AdminShop
      LocalShop: Player offer
    Seller: '&7Seller:  &9%arg0'
    Status:
      Ended: '&7Status: &cended'
      Expired: '&7Status: &cexpired'
      Active: '&7Status: &2active'
      Canceled: '&7Status: &4canceled'
    Amount: '&7Amount: &6%arg0'
    PriceEach: '&7PriceEach:  &c%arg0'
    PriceTotal: '&7PriceTotal:  &c%arg0'
    DateStarted: '&7started: %arg0'
    BuyPriceEach: '&7Buy price each:  &c%arg0'
    DateEnded: '&7ended: %arg0'
    Buyer: '&7Buyer:  &9%arg0'
  AuctionHistory:
    Title: Overview
    Description: auction history
  BuyPrice:
    Description: '&7click to change the buy price'
    Title: '&6Buy Price'
  SellButtons:
    Title: '&9Sell'
  AuctionCreate:
    Description: '&7click here to sell your items'
    Title: '&2Create new auction'
  SetBuyPriceTitle: '&6Change buy price'
  AmountButtons:
    Description: '&7Use shift to stack'
    Title: '&6Amount'
  CreateAuction:
    Description: '&7click here to sell your item'
    Title: '&2Create new auction'
  Finish: '&aFINISH - Sell this item'
  CloseButtons:
    Description: close this inventory
    Title: EXIT
  CreateAdminShop:
    Title: '&2Create / Edit Adminshop'
    Description: '&7click to create / edit an AdminShop'
  MoneyButtons:
    Title: '&6Your money'
  "SellAll\t": '&aSell as many stacks I own'
  Next: '&aNext'
  BuyButtons:
    Title: '&9Buy'
  SellAllButtons:
    Title: '&9Sell all'
  SellSingle: '&aSell this item stack'
  ChooseItem:
    Description: '&aor use SHIFT-Click'
    Title: '&aDrag an item here'
  AllPlayerHistory:
    Description: global history - admins only
    Title: Auction overview
  BackButtons:
    Description: go back to previous inventory
    Title: RETURN
  Free: '&aFree'
  SearchButtonFindPlayer:
    Title: '&bSearch for player'
GuiTitles:
  Warning: '&cWarning'
  AdminShop: '&6 AdminShop'
  AllLocalChestShop: '&6 All LocalChestShops'
  AllItemsInCategories: GlobalChestShop
  AuctionSellItem: '&aSell this item'
  CancelAuction: '&cCanceling auction'
  History:
    CanceledAuctions: '&6Canceled Auctions'
    RunningAuctions: '&aRunning Auctions'
    BoughtAuctions: '&9Bought auction'
    Expired: '&cExpired auctions'
    SoldAuctions: '&bSold auctions'
  SetSellPrice: '&6Change sell price'
  LocalChestShop: '&0LocalChestShop'
  EndedAuctionTitle: '&7 This auction has ended!'
  AuctionPage: '&8Auctions'
  Search: '&0Search results of: "&2%arg0&0"'
  CreateAdminShop: '&2Create new Adminshop'
  CreateAuction: '&2Creating new auction'
  AllAuctions: '&6 All Auctions'
  EditAdminShop: '&6Edit AdminShop'
  AuctionChangePrice: '&6Changing price'
  BuyAuction: Buying an auction
Messages:
  MoneyDeposit: '[BANK] You have received %arg0.'
  WorldNotFound: '&c You cannot access the shop system in this world'
  ItemIsDamaged: '&cItem is damaged'
  MoneyDepositTax: '[BANK] You have received %arg0(%arg1 are tax)'
  InformAboutBuy: '[SHOP] %arg0 has purchased your auction: %arg1 %arg1'
  AdminShopIsDisabled: '&cThis AdminShop is not available!'
  Inventory:
    NoSpace: '&cYou don''t have enough space in your inventory'
    NoMoney: '&cYou don''t have enought money!'
    NoItem: '&cYou don''t own this item!'
  SearchInstructionsAnvilGui: '&asearch for:'
  AuctionAllreadyEnded: '&cThis auction was already bought'
  TooManyAuctions: '&cYou cant have more than %arg0 running auctions'
  NoChestFound: '&cYou can only create shops 1 block away from a chest'
  SearchInstructions: '&aType the name of the item you are looking for into the chat'
  TooSlowAuctionEnded: '&cThis auction is no longer for sale!'
  CreatedAuction: '&aYou have successfully created a new auction'
  ItemSold: '&aYou just sold an item'
  PriceCantBeLessThanZero: '&cPrice can''t be nagative'
  BroadcastSell: '&a[GlobalChestShop]  &6%arg0 &ahas purchased &6%arg1 &afor %arg2
    &aeach from %arg3&a.'
  QuestionSaveChanges: '&cSave all changes?'
  TooManyShops: '&cYou already have too many shops '
  MoneyWithdrawn: '[Money] %arg0 were withdrawn from your account.'
  ItemBought: '&aYou just bought an item &b%arg0'
  ChooseItem: '&aDrag an item in the center slot to sell it'
  BuyCommandWrongUsage: '&7/GlobalChestShop buy &c<itemname | hand>'
  WarningBuyPriceGreaterSellPrice: '&cBuy price can''t be greater sell price!'
  PermissionWarning: '&cYou don''t have the permission to do this!'
  RemovedAuction: '&cCanceled auction'
  BroadcastCreationOfNewAuction: '&a[GlobalChestShop]  &6%arg0 &ahas created a new
    global auction: &6%arg1 %arg2 &afor &6%arg3 &aeach.'
  ItemNotAllowed: '&cYou cannot sell this item here.'
  CanNotDeleteShopTooManyAuctions: '&cThis shop still contains running auctions. To
    delete a shop you have to cancel all your auctions first.'
  NoChestOwner: '&cIt seems this chest is not yours. If it is yours, place the chest
    again!'
DefaultCategories:
  Miscellaneous: Miscellaneous
  DecorationBlocks: Decoration Blocks
  Transportation: Transportation
  BuildingBlocks: Building Blocks
  Materials: Materials
  Redstone: Redstone
  Combat: Combat
  Tools: Tools
  Foodstuff: Foodstuff
  Brewing: Brewing
Version_DONT_CHANGE_THIS!: '1.0'