Commit Graph

531 Commits

Author SHA1 Message Date
Andrzej Pomirski
c70fa03a6c Remove database suppression 2015-07-12 19:19:23 +02:00
Andrzej Pomirski
17c2f943c6 Do not let players create shops on donation chests 2015-07-12 19:18:53 +02:00
Andrzej Pomirski
3c949f0450 Remove trailing zeroes from prices 2015-07-12 19:18:31 +02:00
Andrzej Pomirski
1d550874fb Grammar! 2015-07-12 19:18:06 +02:00
Andrzej Pomirski
7bc452e203 Switch to thread-safe DTOs 2015-07-05 21:56:42 +02:00
Andrzej Pomirski
118f72e805 Speed up SignBreak 2015-07-05 21:55:59 +02:00
Andrzej Pomirski
e5953cd740 Speed up the isSign method
Theoretically, block.getState() returns a thread-safe instance of a
block, so getting it when not needed might have hurt performance of
ChestShop
2015-07-05 21:48:17 +02:00
Andrzej Pomirski
99959f2ca0 Fix the problem with colour signs
Apparently sign colour plugins do not consider &0 to be a colour that
needs to be removed if there is no other code like that on the sign,
thus ChestShop did not register the initial SignChangeEvent, however
after the server software removes the redundant colour from the sign, it
appeared and worked just like a ChestShop one. This commit "fixes" this
by stripping the colour codes from the sign before it is created.
2015-05-31 18:27:11 +02:00
Andrzej Pomirski
44d801db46 Remove obsolete configuration options 2015-05-22 13:31:43 +02:00
Andrzej Pomirski
6982ef38d1 Should fix the Mac issues 2015-05-22 13:26:42 +02:00
Andrzej Pomirski
2cde9da196 Remove DB logging 2015-05-22 13:26:28 +02:00
Andrzej Pomirski
cd3781c26c Should fix the lag, hopefully 2015-05-22 13:26:20 +02:00
Andrzej Pomirski
02673dec94 Make DB code nicer 2015-05-22 13:26:07 +02:00
Andrzej Pomirski
6466b2d6aa Remove logging to database! 2015-05-22 13:25:32 +02:00
Andrzej Pomirski
13d83ec92a Fix Essentials' Eco problem 2015-03-21 16:11:33 +01:00
Andrzej Pomirski
2c729789e8 Add a warning for Residence 2015-03-21 16:11:23 +01:00
Andrzej Pomirski
fac9a18b8f Add a simple shop edited event, not yet working 2015-03-17 11:36:55 +01:00
Andrzej Pomirski
cb126f22cf Fix the price exploit 2015-03-17 11:36:19 +01:00
Andrzej Pomirski
1bd0e9f8ef Change the priority of the discount handler 2015-03-11 18:02:41 +01:00
Andrzej Pomirski
28f9f08987 Fix money being transferred to the old username 2015-03-11 18:02:30 +01:00
Andrzej Pomirski
d25dbd5cce Migrate the database 2015-03-11 18:01:50 +01:00
Andrzej Pomirski
fa85153407 Vault must be present for ChestShop to work 2015-02-04 20:15:02 +01:00
Andrzej Pomirski
8c77057703 Fix the issue with name changes 2015-02-04 20:14:35 +01:00
Andrzej Pomirski
f975450130 Fix an issue caused by Spigot/CraftBukkit "forgetting" the usernames
Somehow, OfflinePlayer initiated with an UUID does not contain the
"name" property after a while.
2015-01-17 15:18:32 +01:00
Andrzej Pomirski
116d22dd62 Sign charge fees should go to the server account 2015-01-08 20:24:40 +01:00
Andrzej Pomirski
31003ca29f Add rounding option to tax getter 2015-01-08 20:12:53 +01:00
Andrzej Pomirski
f6aad7e397 Fix a problem with invalid item IDs 2015-01-08 20:12:38 +01:00
Andrzej Pomirski
a058b80990 Fix WordGuard + minor fixes 2014-11-30 20:15:27 +01:00
Andrzej Pomirski
a4fdc30e17 Add an additional "%buyer" tag to the out of stock message 2014-08-13 17:23:11 +02:00
Andrzej Pomirski
c646dd16a0 FOUND THE CULPRIT. 2014-08-13 17:22:52 +02:00
Andrzej Pomirski
bed883f7ae A small bugfix 2014-07-28 20:51:04 +02:00
Andrzej Pomirski
6bbfc93b27 Fix the "value already present" error 2014-07-22 22:03:50 +02:00
Andrzej Pomirski
be18af86f6 Prevent shops from being ignited 2014-07-13 12:54:30 +02:00
Andrzej Pomirski
d1a79425ed Automatically drop the username on leave 2014-07-03 18:49:12 +02:00
Andrzej Pomirski
1bbf293379 Fix nicknames 2014-06-29 22:22:28 +02:00
Andrzej Pomirski
e39825aa1f Update Residence 2014-06-29 17:35:49 +02:00
Andrzej Pomirski
2a89fb345b NameManager > Bukkit 2014-06-22 14:33:02 +02:00
Andrzej Pomirski
f6457e3d47 Add alternative fallbacks 2014-06-22 14:32:50 +02:00
Andrzej Pomirski
ddf32eda04 Add an option to not remove LWC protections 2014-06-22 14:32:40 +02:00
Andrzej Pomirski
9fa2f92ef8 Switch Vault from names to UUIDs 2014-06-14 20:46:59 +02:00
Andrzej Pomirski
404f7296e0 Remove Register - NO DEFAULT ECONOMY SUPPORT 2014-06-14 20:40:31 +02:00
Andrzej Pomirski
bdecaa1727 Add prefixes to commands 2014-05-24 11:50:27 +02:00
Andrzej Pomirski
a1a688c110 Update updater (yo dawg) 2014-05-24 11:38:13 +02:00
Andrzej Pomirski
83dbce40fd Add a warning if people try to run the new ChestShop version with an older CraftBukkit version 2014-05-24 11:37:51 +02:00
Andrzej Pomirski
4d5f568e1f Removed the admin shop message, since it is no longer necessary 2014-05-24 11:23:43 +02:00
Andrzej Pomirski
39213b2be1 Refactoring the latest /cstoggle changes 2014-05-24 11:15:54 +02:00
Faris Rehman
482ea412b2 Made usage for the command 2014-05-20 22:20:14 +01:00
Faris Rehman
4194a09c86 Fixed missing code 2014-05-20 22:18:51 +01:00
KingFaris10
dffbb7f06a Added /cstoggle to disable spam messages. 2014-05-20 22:13:25 +01:00
Andrzej Pomirski
bd0a40e16c Cache names in NameManager 2014-05-06 11:55:33 +02:00
Andrzej Pomirski
c403c1736f Fix the ? item recognition 2014-04-21 17:08:31 +02:00
Andrzej Pomirski
11ffd64952 Fix the version file not saving 2014-04-21 17:08:20 +02:00
Andrzej Pomirski
38279fade4 Do not download updates if you're using a dev version 2014-04-18 19:43:00 +02:00
Andrzej Pomirski
b4947475e2 Remove the "hacking" message. 2014-04-18 19:41:27 +02:00
Andrzej Pomirski
6d27ca7bea Remove the unnecessary database logging 2014-04-18 19:41:15 +02:00
Andrzej Pomirski
b05840dd98 Fix the updater not to download dev versions 2014-04-15 16:00:57 +02:00
Andrzej Pomirski
7842be5f75 Prepare for database migrations 2014-04-12 17:37:23 +02:00
Andrzej Pomirski
f193276372 Prevent from breaking signs for non-existant players 2014-04-12 17:27:16 +02:00
Andrzej Pomirski
e02a8bb92e Fix the name autocompletion 2014-04-12 17:16:13 +02:00
Andrzej Pomirski
554c0291b5 Add a fake Admin Shop account 2014-04-12 16:52:21 +02:00
Andrzej Pomirski
b37ae0fbc4 UUID changes 2014-04-12 14:22:34 +02:00
Andrzej Pomirski
4107b10f4b More UUID changes 2014-04-12 13:57:39 +02:00
Andrzej Pomirski
7321e6dc07 More UUID changes 2014-04-12 13:38:11 +02:00
Andrzej Pomirski
b508d08bba Refactoring 2014-04-12 13:28:37 +02:00
Andrzej Pomirski
786c140ebd More refactoring + UUID changes 2014-04-12 13:28:29 +02:00
Andrzej Pomirski
b0e452ed1d Refactoring 2014-04-12 13:28:13 +02:00
Andrzej Pomirski
012dd4568d Document the functions 2014-04-12 13:28:02 +02:00
Andrzej Pomirski
6845f6a0cb Change the name to be more appropriate 2014-04-12 13:27:49 +02:00
Andrzej Pomirski
0328374951 Clean up the imports 2014-04-11 17:37:53 +02:00
Andrzej Pomirski
22d3c7f575 Remove unnecessary imports 2014-04-11 17:23:04 +02:00
Andrzej Pomirski
2cd4a1fb45 Fix the NPEs 2014-04-11 17:17:20 +02:00
Andrzej Pomirski
dd22c709e0 This should cover the basics of UUID change
WARNING: Users with names longer than 15 characters will not be able to
receive money as long as they do not join the server
2014-04-10 22:52:21 +02:00
Andrzej Pomirski
da7e236c0e Use ORMlite for the UUID->name mapping 2014-04-10 21:52:05 +02:00
Andrzej Pomirski
03320b7db6 Include ORMlite for SQL management 2014-04-10 21:51:31 +02:00
Andrzej Pomirski
4c65fbf9ef Start preparing for 1.7.6 2014-04-06 19:51:47 +02:00
Andrzej Pomirski
bc218746ae Change the shell 2014-04-06 19:51:30 +02:00
Andrzej Pomirski
e29f9681a1 Fix a dupe bug 2014-04-01 15:47:19 +02:00
Andrzej Pomirski
f5771c28d8 Change the priority of ChestShop's interact event 2014-03-20 16:57:48 +01:00
Andrzej Pomirski
b9b4d1b29c Add a config option for the update check 2014-03-20 16:57:32 +01:00
Andrzej Pomirski
9b855a70f3 Add an update checker 2014-03-20 16:57:19 +01:00
Jacek Kobus
d63f54d540 Chestshop ignores event cancellation
Plugins with LOWEST priority cancel the event but chestshop ignores that flag and continues anyway.
2014-03-19 01:07:32 +01:00
Andrzej Pomirski
20deb65a57 Add auto-item-fill 2014-03-12 13:27:30 +01:00
Andrzej Pomirski
e18269a7b7 Prevent from scamming 2014-03-12 12:50:39 +01:00
Andrzej Pomirski
9ada7281cd Prevent taxes from being added to cancelled transactions as well 2014-02-10 12:27:52 +01:00
Andrzej Pomirski
d51f52af9e Fix items with name longer than then sign can handle 2014-02-10 12:03:13 +01:00
Acrobot
348cbda185 Fix the hopper protection 2014-01-08 00:12:29 +01:00
Acrobot
138d0a6a35 Fix the checker 2014-01-03 00:42:04 +01:00
Acrobot
00ee643c62 Finally, no hacks for WorldGuard needed 2014-01-03 00:41:30 +01:00
Acrobot
6d601fd2bf Fix the message spam 2013-12-07 18:31:25 +01:00
Acrobot
387961d242 WAT. NO. 2013-12-07 18:30:26 +01:00
Acrobot
cec194135e Fix a typo 2013-12-03 20:15:34 +01:00
Acrobot
c8ddf29e91 Fix players not being refunded the money 2013-12-03 18:32:09 +01:00
Acrobot
8bc04859a1 Do not alias /csgive as /give 2013-11-04 15:17:56 +01:00
Acrobot
2b03c4491f Ouch, this will be so horrible when Bukkit 1.7 drops 2013-11-01 19:29:34 +01:00
Acrobot
b640f60a17 Remove obsolete enchantment code 2013-11-01 19:29:12 +01:00
Acrobot
eb8b6eb393 Add an isEmpty() to RowSet 2013-11-01 16:51:42 +01:00
Acrobot
023cabd849 Change the check 2013-11-01 16:44:57 +01:00
Acrobot
143b7a49af Add a first test case 2013-11-01 16:20:36 +01:00
Acrobot
8afdc7edc7 Phase out the plugin.yml command permissions
in favour of a custom message.
2013-11-01 14:24:08 +01:00
Acrobot
36c33612a0 Fix possible fraud cause 2013-11-01 13:48:54 +01:00
Acrobot
1c7c7d926e Fix the /csgive command 2013-10-29 17:12:37 +01:00
Acrobot
ac523a1112 Add a prevention from NPE 2013-10-27 16:51:20 +01:00
Acrobot
7c5ed4781f Add a prevention from IOUB-exceptions 2013-10-27 16:51:01 +01:00
Acrobot
9dae38593d Add a ShopDestroyed hook 2013-10-27 16:50:19 +01:00
Acrobot
207628ae62 Fix possible errors with ItemStacks 2013-10-27 16:50:04 +01:00
Acrobot
2c94175a23 Add LWC protection removal 2013-10-27 16:49:48 +01:00
Acrobot
87d768a524 Add /csgive to plugin.yml 2013-10-27 16:49:31 +01:00
Acrobot
d390224cce Add /csgive's Messages 2013-10-27 16:49:21 +01:00
Acrobot
32f22cef88 Add a new /csgive command 2013-10-27 16:49:14 +01:00
Acrobot
e74d3f4f39 Add a new method for handling iterables 2013-10-27 16:48:43 +01:00
Acrobot
46d09ded82 Remove Towny integration in favour of a stand-alone module 2013-10-04 18:40:40 +02:00
Acrobot
7b8396a3ef Set the priority to monitor 2013-10-04 18:35:34 +02:00
Acrobot
b59f052019 Fix for McMMO compatibility 2013-10-04 18:29:50 +02:00
Acrobot
08f67ef7a0 Remove the bank permission, as for now it's not used 2013-10-04 18:29:16 +02:00
Acrobot
066b735a4c Set the item's quantity to 1 for every item with MetaData 2013-10-01 19:12:40 +02:00
Acrobot
6474558747 Remove bank prefix for now 2013-09-29 00:18:37 +02:00
Acrobot
f2352d2e42 Fix chests recognising incorrect neighbors 2013-09-28 23:47:36 +02:00
Acrobot
7d4b355e64 Fix a typo 2013-09-15 15:39:40 +02:00
Acrobot
44c4b282b3 Fix the teleport issue 2013-08-29 00:24:12 +02:00
Acrobot
882f449ba0 Remove debug messages 2013-08-27 00:47:47 +02:00
Acrobot
d66f6b95d2 Add a system to fix invalid signs 2013-08-27 00:45:14 +02:00
Acrobot
baed82be29 Add option to turn off hopper protection 2013-08-26 23:36:50 +02:00
Acrobot
8a9f1c52c7 Protect from extremally high balances 2013-08-26 23:36:36 +02:00
Acrobot
bfad819a0a Remove unnecessary imports 2013-08-10 19:53:42 +02:00
Acrobot
aa87b01b68 Fix possible StackOverflowExceptions 2013-08-09 23:00:23 +02:00
Acrobot
900009b103 Fix a bug where the chat was closed on teleport 2013-08-08 20:25:44 +02:00
Acrobot
ed1f0a6024 Include Hidendra's metrics as a dependency 2013-08-08 20:25:27 +02:00
Acrobot
e1cb30a0e8 Add shop created/removed logging 2013-08-07 02:03:09 +02:00
Acrobot
e5c3fe733f Cache the item metadata results 2013-08-05 02:06:13 +02:00
Acrobot
42ca03b780 Send the transaction message in an async thread 2013-08-05 02:06:01 +02:00
Acrobot
9e1e582d4a Minor performance improvements 2013-08-05 02:05:43 +02:00
Acrobot
20ea8f3940 Yah. Really, it's been over a year now. 2013-08-05 02:05:18 +02:00
Acrobot
9a35b2e938 Un-deprecate OddItem 2013-07-30 17:27:04 +02:00
Acrobot
a7424d73d3 Register the new listener 2013-07-28 16:59:44 +02:00
Acrobot
77ef3121d3 Fix a possible duplication bug 2013-07-28 16:58:00 +02:00
Acrobot
b570e38be3 Fix selling of enchanted "normal" items 2013-07-22 21:39:22 +02:00
Acrobot
438e3a6ed0 Fix an NPE when Vault was not found 2013-07-22 21:37:59 +02:00
Acrobot
968296f1bb Fix the issue with Admin Shops 2013-07-21 16:51:36 +02:00
Acrobot
ff4cfb0c7c Automatic code re-format and re-organisation 2013-07-21 16:49:55 +02:00
Acrobot
06b9749467 Remove obsolete EconomyManager 2013-07-13 23:22:36 +02:00
Acrobot
b1111798ad Fix possible dupe 2013-07-13 23:14:23 +02:00
Acrobot
bca38b8a79 Transfer to new economy handling
No bank support... sorry @jrtc27, it's coming later!
2013-07-13 23:14:10 +02:00
Acrobot
b4a569aaf7 Update plugin.yml with new items 2013-07-13 23:12:48 +02:00
Acrobot
116f70e057 Grammar 2013-07-13 23:12:20 +02:00
Acrobot
cb265136b0 Update pom.xml 2013-07-13 23:12:02 +02:00
Acrobot
886c4da302 Refactor the dependency loading
Warning! This WILL NOT currently work if compiled.
2013-05-30 16:59:20 +02:00
Acrobot
2c0207adb1 Add economical listeners 2013-05-30 16:58:42 +02:00
Acrobot
2620b56555 Make events cancellable 2013-05-30 16:58:22 +02:00
Acrobot
c86ffb623a Add an external Vault dependency 2013-05-30 16:57:54 +02:00
Acrobot
e11bed92a3 Add AccountCheckEvent 2013-05-20 19:09:45 +02:00
Acrobot
00e577ff0a Fix the name checker! 2013-05-20 19:09:37 +02:00
Acrobot
fd7ccbc566 Refactor the uName class 2013-05-20 19:09:27 +02:00
Acrobot
4b166bb801 Add more Currency events 2013-05-07 18:37:46 +02:00
Acrobot
a9102227f6 Add Currency events 2013-05-03 01:57:09 +02:00
Acrobot
f94ef396f0 Fix Towny 2013-05-03 01:56:54 +02:00
Acrobot
94e94e99a2 Fix PriceRestrictionModule 2013-05-03 01:56:43 +02:00
Acrobot
7f933cb1d0 Document events 2013-04-27 14:48:19 +02:00
Acrobot
12a1dd87f3 Modify modules + fix maxPrice 2013-04-23 21:04:59 +02:00
Acrobot
688d146732 Use annotations in config system 2013-04-23 20:09:23 +02:00
James Clarke
3098a38ba9 Only check if a bank exists when banks are supported 2013-04-13 00:13:17 +01:00
James Clarke
6f12dd8464 Added support for bank accounts 2013-04-12 18:23:34 +01:00
Acrobot
f5f883df8e Instead of buy/sell all, shift sells one stack 2013-04-05 14:17:34 +02:00
Acrobot
e0fbe9f31a Fix NPE on file load 2013-04-05 13:11:06 +02:00
Acrobot
a3654ea031 Added an option to specify what shift does 2013-03-30 15:58:06 +01:00
Acrobot
20f9599c66 Allow enchantments over normal levels 2013-03-30 15:57:42 +01:00
Acrobot
960b1617c6 Supposedly fixed unusual error with EBean 2013-03-30 10:59:08 +01:00
Acrobot
c29c132c58 Prevent NPEs from happening 2013-03-25 19:41:49 +01:00
Acrobot
33255ee248 Let admins be admins 2013-03-24 20:58:17 +01:00
Acrobot
30a514e783 Properly re-write BlockPlace listener 2013-03-24 20:58:09 +01:00
Acrobot
2448af7bcb Make use of the new InventoryMoveEvent 2013-03-24 20:57:54 +01:00
Acrobot
1bc4fbcc78 Do not capitalize the metadata 2013-03-24 00:53:33 +01:00
Acrobot
055684fcbf Fix NPE 2013-03-24 00:53:06 +01:00
Acrobot
c8e85856a1 Fix neighbour finding 2013-03-23 14:08:21 +01:00
Acrobot
775dbe5afe First MC 1.5 version 2013-03-16 19:27:24 +01:00
Acrobot
d908e904a2 Remove teleportation bugfix
Not needed anymore - we're targetting CraftBukkit 1.5
2013-03-16 18:33:55 +01:00
Acrobot
6576198b69 Fix priorities 2013-03-16 18:33:09 +01:00
Acrobot
5e987b927c Format the fee message 2013-03-16 18:32:59 +01:00
Acrobot
86889b0ffc Rework LWC module 2013-03-16 18:32:41 +01:00
Acrobot
be46ac065f Fix the money bug 2013-03-11 00:32:11 +01:00
Acrobot
6bebf3643e Added auto-changing version in plugin.yml 2013-03-08 20:39:06 +01:00
Acrobot
a5bfa86bca Mavenized the project
Switched the project to Maven - you're now able to easily build
ChestShop.
2013-03-08 20:31:15 +01:00