Commit Graph

90 Commits

Author SHA1 Message Date
Acrobot
3a1b80d4ef Economy.balance() -> Economy.getBalance() 2012-08-10 19:01:04 +02:00
Acrobot
3d9edc4f3f SignChange listener now check if sign is valid 2012-08-10 19:00:45 +02:00
Acrobot
d7c5aad271 Shop object is deleted 2012-08-10 19:00:28 +02:00
Acrobot
032aff47bb New RestrictedSign class 2012-08-10 19:00:20 +02:00
Acrobot
31e440a771 RestrictedSign now should restrict transactions 2012-08-10 18:59:29 +02:00
Acrobot
1fdc32e230 uBlock now contains the chest neighbor methods 2012-08-10 18:59:10 +02:00
Acrobot
b8d8cdb398 Removed unnecessary Container interface
Added a class which implements Inventory instead
2012-08-10 18:58:45 +02:00
Acrobot
d1dd4b7f5d Added INVALID_SHOP_DETECTED for plugin use 2012-08-10 18:57:10 +02:00
Acrobot
a3eaff47cd Transactions now use Event-Listener system 2012-08-10 18:56:16 +02:00
Acrobot
92aeee4a86 Trying to fix "Item not recognised" message 2012-08-10 18:54:49 +02:00
Acrobot
a467e405c2 Add SecureChests support and Fix Towny integration 2012-07-26 13:44:57 +02:00
Acrobot
47dc473163 Fix negative prices 2012-07-26 13:44:29 +02:00
Acrobot
919b9728f5 Fix enchantment detection 2012-07-26 13:44:19 +02:00
Acrobot
d1732552b0 - Made the plugin more event-driven
- Added PreTransactionEvent which can be cancelled
- Fixed not placing B/S before prices
- Updated Heroes
2012-07-07 19:24:06 +02:00
Acrobot
5fd4034c45 Minor fixes 2012-06-25 17:16:57 +02:00
Acrobot
9ef6305a0a Fixed a bug in bukkit (which changed ItemStacks in arguments) 2012-06-25 17:16:41 +02:00
Acrobot
f67990ea48 Changed how dependencies are loaded 2012-06-25 17:16:24 +02:00
Acrobot
c31e902b4a Added chest protection 2012-06-25 17:15:32 +02:00
Acrobot
ec5092900b Fixed FREE shops 2012-06-25 17:15:10 +02:00
Acrobot
c63ba4c9a4 Fixed partial transactions
Removed stackAmount from Shop and TransactionEvent's constructor.
2012-06-10 23:32:57 +02:00
Acrobot
5908eb67fa - Added API (let's start with simple things first)
- Copied utilities from ChestShop-4
- Made code really, really nicer to read
- Made every external plugin's wrapper a listener, so it listens to events instead of being hard-coded.
2012-06-08 15:28:36 +02:00
Acrobot
f1ee558e3a - Reformatted code
- Switched from YamlConfiguration to BreezeConfiguration (from ChestShop 4)
- Fixed getDouble()
- Instead of checking for Admin Shops, we just pass in a new AdminShop Container
- Created events for shop creation, protection checks and protection creation
- Expanded string data value parsing, for example - you can use "Ocelot Monster" on the sign
- Collected all external plugin wrappers in a single folder
- Instead of using statics, now we use objects
- Fixed enchantments for armour
- Made config more readable
- Added a setting for removing empty shops
- Switched from System.out to logger
- Also, switched from ugly file logging to Java's native one (FileHandler)
- Added an option to tax transactions even when SERVER_ECONOMY_ACCOUNT is empty
- Changed the Container interface
2012-05-10 16:32:25 +02:00
Acrobot
e28548d534 Changed name of 1 class and 1 variable 2012-04-19 17:12:49 +02:00
Acrobot
7f8fe5e6c1 Instead of generating a new protection, use the new method 2012-04-19 16:37:33 +02:00
Acrobot
bb9f970148 Restructured Property enum 2012-04-19 16:37:15 +02:00
Acrobot
475ba36728 Removed BLOCK_UPDATE (which didn't work) 2012-04-19 16:36:31 +02:00
Acrobot
a71b56e1f7 Fixed MaxPrice 2012-04-19 16:36:01 +02:00
Acrobot
7a3078aedc Fixed Metrics' error message 2012-04-19 16:14:12 +02:00
Acrobot
6faa4321df - Added fancy formatting fo the item name in the chat message
- Fixed consle item fomatting
2012-04-19 16:13:42 +02:00
Acrobot
6bcac6fa01 Fixed getDouble() 2012-04-19 16:05:56 +02:00
Acrobot
e23184d0fa Updated Logging methods 2012-04-19 15:53:23 +02:00
Acrobot
edee5f217f Updated Towny 2012-04-19 15:53:15 +02:00
Acrobot
b1b97bbaf9 Added WorldGuard container protection 2012-04-19 15:53:08 +02:00
Acrobot
e2305225d3 Fixed buying from shops 2012-04-19 15:52:31 +02:00
Acrobot
5da5773879 Added getDefaultProtection() method so the objects gets created only once 2012-04-19 15:51:50 +02:00
Acrobot
e4e7329063 Switched from ugly statics to objects 2012-04-19 15:50:53 +02:00
Acrobot
fc475ff543 Synchronised Queue methods 2012-04-19 15:50:05 +02:00
Acrobot
fce5508aa3 Switched from float to double in economical stuff 2012-04-19 15:49:48 +02:00
Acrobot
9f63103ff3 Changed MaxPrice to also work globally 2012-04-19 15:46:05 +02:00
Acrobot
8156b38785 - Fixed the chest exploit, but still waiting for feedback
- Added new Metrics class
2012-04-16 16:34:00 +02:00
Acrobot
77aa60d2a2 Fixed the last merge 2012-04-07 12:44:58 +02:00
Andrzej Pomirski
12cc59aa35 Merge pull request #19 from Aiquen/master
Added an option to toggle the right-sign-click chest-open feature.
2012-04-07 03:42:06 -07:00
Acrobot
948dcf3653 - Added an option to toggle the WG flag
- Removed old pre-CB 1.1-R6 chest compatibility
- Changed priorities for block destroying
- Synchronised run() in Queue, as it's called from asynch thread.
2012-04-07 12:41:20 +02:00
Aiquen
1ce4191586 Opening chest with right click is bypassing lockette ([private]) access restriction. I don't know, imo chesthop should check event.isCancelled(), but adding this option to config is lesser invasive solution. 2012-04-06 21:24:11 +03:00
Aiquen
7213ca0fe4 Update com/Acrobot/ChestShop/Config/Property.java 2012-04-06 21:17:10 +03:00
Acrobot
d6bdb0486a - Fixed chests in 1.2.3
- Formatting
- Warning about old Bukkit version
- Renamed "TOWNY_CANNOT_CREATE_SHOP_HERE" to "CANNOT_CREATE_SHOP_HERE" to avoid confusion
- Renamed "NOT_ENOUGH_LWC_PROTECTIONS" to "NOT_ENOUGH_PROTECTIONS" and changed its message

- Fixed armour enchantments
- Logging shop location
- Fixed Heroes for the newest version
- Removed redutant plugin object
- Added dev-url for CraftBukkitUpToDate
- Removed redutant plugins from softdepend
- Fixed a bug when the player interacts with a shop with a sign in hand
2012-03-17 15:00:25 +01:00
Acrobot
73e3616238 - Fixed an issue with LWC (defaulting to public protection)
- Fixed an issue with admins not receiving the refund when destroying a shop
2012-03-11 22:56:51 +01:00
Acrobot
e87f5f4f11 - Added a warning if spawn-radius isn't set to 0
- Deleted a few outdated plugins from built-in Register
- System.out -> System.err for errors
- Blocked buying if you're holding a sign in your hand (allows, for example, for sign editors to work)
- Updated Heroes package
- Fixed WG integration (no longer throws errors, but uses ugly workaround)
- Fixed a small bug in Register plugin loading message
- Removed version checking for OddItem, WorldGuard and LWC
2012-03-06 19:41:14 +01:00
Acrobot
0e22503c9b Merge branch 'master' of github.com:Acrobot/ChestShop-3 2012-03-01 22:07:41 +01:00
Acrobot
7f8af7b5b3 Breaking changes:
- Permissions 2/3 are no longer supported
- Changed ChestShop.shop.create permission to consist of 2 different permissions: ChestShop.shop.create.buy and ChestShop.shop.create.sell
- (Experimental) Ability to add max item prices to the config
- (Experimental) Added a custom "chestshop" WorldGuard flag using reflection

- Switched to new Config system
- Updated Metrics
- Removed chest masking option
2012-03-01 22:03:59 +01:00