1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-12 04:07:19 +01:00
Commit Graph

738 Commits

Author SHA1 Message Date
Zrips
7a52b9c94d Lets recalculate limits after levelup 2019-10-28 10:58:24 +02:00
montlikadani
d98bb4aaf9 Bake income should work now 2019-10-26 12:06:21 +02:00
montlikadani
c825a2de56 Rename cook to bake
Correct English
2019-10-26 11:37:40 +02:00
montlikadani
c36df666be Lets start working on Cook action 2019-10-26 11:30:58 +02:00
montlikadani
d740b534c3 Fixed server crash when adding block protections 2019-10-20 17:57:26 +02:00
montlikadani
558a0abfad Fix issue for other versions the getView() is not existent 2019-10-20 17:13:42 +02:00
Zrips
fb4f80c341 Updated words_ru file by Lexon2 2019-10-20 13:21:21 +03:00
montlikadani
e2629b4ea6 Better handling for jobs GUI interact
- Minor loading improvement speed for connecting to the database
2019-10-18 17:01:18 +02:00
montlikadani
c2e0dcd366 Lets try to fix inventory dragging issue on jobs browse 2019-10-17 19:06:00 +02:00
montlikadani
65d0b9a811 Change logic for reload 2019-10-16 20:21:50 +02:00
montlikadani
3b8ad58d05 Lets make async for convert sub-command
- Some null checks
2019-10-16 20:19:05 +02:00
montlikadani
d9beab45da Nothing 2019-10-06 17:51:11 +02:00
silas lankford
51742dc97d Fixed issue for beetroots when does not worked correctly in default config (#552) 2019-10-03 17:27:08 +02:00
montlikadani
020367fc5e Fixed issue for sign updates 2019-09-30 19:51:05 +02:00
montlikadani
f48e6dcec4 Speed up the version checking of papi 2019-09-26 20:44:20 +02:00
montlikadani
ac9bfcc0b0 Do not hide the item from shop 2019-09-26 20:07:26 +02:00
montlikadani
f894a6aa09 Added option to jobs shop to hide icon if a player there are no enough points 2019-09-25 19:08:48 +02:00
Zrips
6dfd0d94e8 Table conversion to use ID's 2019-09-24 12:27:32 +03:00
montlikadani
865ad64c18 EditQuests sub-command should work now 2019-09-23 18:14:02 +02:00
Yiğit Duman
0057bd3aba Fixed issue when used 1.12 and lower versions then some materials not work correctly (#550) 2019-09-23 17:43:53 +02:00
montlikadani
f0ce3fcdc4 Re-add deprecated pointsData method to prevent issue from plugins 2019-09-23 15:32:43 +02:00
Zrips
9a73f1eb0d Don't force economy to be done in sync... 2019-09-22 11:51:07 +03:00
Zrips
5c7c4621e5 SqLite has different syntax for unique column definition 2019-09-22 11:28:46 +03:00
Zrips
b568195624 Lets check NPE 2019-09-22 11:19:54 +03:00
Zrips
f02902fb1e Merge branch 'master' of https://github.com/Zrips/Jobs.git 2019-09-22 11:18:57 +03:00
Zrips
e1cddfa8c8 Extra update 2019-09-22 11:18:43 +03:00
montlikadani
5600b3af6f Quest objective amount is now optional (default 1)
- Some fixes for saving quest objectives
2019-09-20 21:23:27 +02:00
montlikadani
1513e32afc Added option to leave from job in jobs GUI 2019-09-20 16:20:43 +02:00
montlikadani
5d856f0fbc Jobs toggles will not be saved from now instantly when get income 2019-09-19 20:22:07 +02:00
montlikadani
2cfff7a53b Lets update locales 2019-09-19 18:29:32 +02:00
montlikadani
71fe75c884 Lets add editquests strings and fix some issues 2019-09-19 18:12:36 +02:00
Zrips
e077c5f02d First iteration to use ID's instead of full name String, saves space 2019-09-19 18:54:59 +03:00
Zrips
beb9ef76a9 Lets upgrade JobsPaymentEvent to properly handle all payments types 2019-09-19 14:11:45 +03:00
Zrips
fae5d65a88 Lets upgrade BufferedPayment 2019-09-19 14:01:24 +03:00
Zrips
cb67b23c94 Lets check for possible NPE 2019-09-19 13:34:40 +03:00
Yiğit Duman
6f4501ff05 Fix for showing messages without payment (again) (#543) 2019-09-16 18:27:50 +02:00
Yiğit Duman
41d2e04b50 Fixes #541 and some duplication bugs (#542) 2019-09-16 16:53:23 +02:00
montlikadani
0f9ed9e2c6 Lets start working editquests sub-command 2019-09-14 16:22:59 +02:00
montlikadani
6cd52625e2 Should fixed issue when the JobsPrePaymentEvent getJob method always returns null 2019-09-14 16:14:38 +02:00
Yiğit Duman
b0aaeb346e Get the job original name from config instead of section name (#537) 2019-09-14 16:08:51 +02:00
Yiğit Duman
8df5ec581f Fix bone meals dupping issue when interacted with seeds (#535) 2019-09-14 15:31:55 +02:00
Yiğit Duman
ab2405eaff Fixed 1.11 & 1.12 entities don't work (#533) 2019-09-14 14:30:23 +02:00
montlikadani
648c6f412a Fixed money dupping issue when left clicked to block and earn income 2019-09-14 13:27:27 +02:00
montlikadani
b42e1002e5 Added option to ignore boosted items in offhand 2019-09-12 15:27:34 +02:00
montlikadani
cfc0453cfc Added new placeholder: %jobsr_user_job%
This placeholder will show the player job, which job is specified in the placeholder value.
2019-09-11 16:33:35 +02:00
montlikadani
ab9ae0da1b Added method to get the fullName from job 2019-09-06 14:59:52 +02:00
montlikadani
f19138db4d Fixed signs updating
- Level, exp adding and taking amounts now correctly calculating.
2019-09-03 17:01:49 +02:00
montlikadani
d62349badc Fixed issue when used the enchanted books, then can't enchanted properly
- Added argument for signUpdate command
- Removed hack for removing items from inventory when in browse GUI
- Version up for player gliding, because not exists in the API
2019-08-28 18:20:27 +02:00
montlikadani
d84b7d4f03 Implement more API event methods to PrePaymentEvent 2019-08-23 17:28:35 +02:00
montlikadani
a07cbb246d Should need to get actionbar message if the exp, points or money 0
The player should receive the payment message if one, such as points, money, or exp 0 is received. If the value 0 will not get any message.
2019-08-23 17:09:15 +02:00
Yiğit Duman
ee85da3761 Fix for showing messages without payment (#513) 2019-08-23 15:36:54 +02:00
montlikadani
88c6d1fc38 Re-worked the quest list to support crowdin
- Fixed %titlename% placeholder does not showed anything
- Re-added Cat, Cat is ALIVE!!
2019-08-19 18:31:29 +02:00
montlikadani
c5d967a2f1 Some changes in commands due to duplicate values 2019-08-17 08:59:26 +02:00
Zrips
75d41356d1 Maps can't be null here... Clear action is more then enough. 2019-08-16 17:12:15 +03:00
Zrips
cb1583790c Id's should not repeat 2019-08-16 16:58:45 +03:00
Zrips
d801dd43ea Cat is not a real thing. 2019-08-16 16:53:10 +03:00
Zrips
7d06f5ad63 This should be enabled by default, doest run schedule if its empty. 2019-08-16 16:47:31 +03:00
Zrips
feed9d036f Only one scheduler is needed here 2019-08-16 16:44:42 +03:00
Zrips
229be42d64 Lets save block protection in 100's batches whatever it reaches this
limit, instead of doing everything in one go on server shutdown
2019-08-16 14:22:39 +03:00
Zrips
b1d457d2d6 Fix for issue with heads updates 2019-08-16 14:21:27 +03:00
montlikadani
e7b5d6ceee Forgot to remove drink from files 2019-08-15 16:30:59 +02:00
montlikadani
3ee52815a1 Remove bossbar on server shutdown 2019-08-15 09:41:25 +02:00
montlikadani
c164678273 Should fixed issue when the bars are not loaded correctly
This caused the WeakHashMap automatically removing.
2019-08-15 09:17:50 +02:00
montlikadani
f4ed34a00a Drink is not a job action in the whole world 2019-08-15 08:57:42 +02:00
montlikadani
611384922e Important changes for the latest MythicMobs 2019-08-14 19:18:57 +02:00
montlikadani
a4b2b4e6b5 Same changes for giving items 2019-08-14 16:06:44 +02:00
Zrips
a2668474f4 Lets hard limit block protection save to 30 days max 2019-08-14 17:00:55 +03:00
Zrips
75d80d0582 We need this... 2019-08-14 15:25:31 +03:00
Zrips
91da45d6cf Merge branch 'master' of https://github.com/Zrips/Jobs.git 2019-08-14 15:23:03 +03:00
Zrips
f7936dafb7 Lets compact sign save file
Lets save player data if he finished quest
New questtoplist as a sign variable to show top list by quests done on
signs
2019-08-14 15:20:58 +03:00
montlikadani
d1417cc35a Some null checks in playerManager 2019-08-14 14:13:15 +02:00
montlikadani
355074dffd We don't need the x, y, z methods, it can be get from location 2019-08-14 14:09:32 +02:00
Zrips
1b9217393f Better jobs top sign handling 2019-08-14 14:52:17 +03:00
montlikadani
0620cc6965 Signs should work now in older versions 2019-08-13 11:19:15 +02:00
montlikadani
95dda60088 Critical bug fix for fastpayment in for-loop
- Changed the navy and silver to light_blue and light_gray due to version problems, #501
2019-08-12 14:04:15 +02:00
montlikadani
a569f84a73 Resetquest now fully reseting the quest
This is because so many users wanted this command to not only restore time, but the entire completed and completed quest.
2019-08-11 14:36:43 +02:00
montlikadani
3a23f8be31 Implement placeholder for level loss message 2019-08-08 16:32:45 +02:00
montlikadani
13432fe35f Implement some missing codes
Fixed issue when added the schedules to list but cleared in for-loop.
2019-08-04 13:08:47 +02:00
montlikadani
0cef1e8dfd Confirmation for leave commands should work 2019-08-01 15:10:36 +02:00
montlikadani
d4a2add86e Can't call commit when autocommit=true
Should fix SQLException when player limit saved
2019-08-01 12:51:04 +02:00
montlikadani
0abdf99c85 Class register should be in the main thread 2019-07-28 12:39:31 +02:00
montlikadani
030e6b2890 Should fix money dupping issue when interacted block but denied, #487 2019-07-26 09:43:04 +02:00
montlikadani
01898220cc Implement some entity ids 2019-07-24 15:10:10 +02:00
montlikadani
233654daf3 Added option to hide the action names in GUI browse 2019-07-24 09:29:24 +02:00
montlikadani
cf44caa2aa Implement code to unregister all listeners on reload
This reduces the memory leak issue sometimes
- Schedule file now generated when option is enabled in configuration
- Make sure MyPet is enabled when starting plugin
2019-07-23 21:32:32 +02:00
montlikadani
bc97d2aaf6 No need to double check job if null 2019-07-21 17:57:16 +02:00
montlikadani
45d580342e For SQL the truncate is valid command
- Supports 1.14.4
2019-07-20 12:17:21 +02:00
Zrips
c188ec8658 Updating default dynamic payment equatin and some extra comments 2019-07-20 12:53:20 +03:00
montlikadani
466ad912f1 Forgot to add new action to messages
https://github.com/Zrips/Jobs/issues/484#issuecomment-512759409
2019-07-18 12:41:07 +02:00
montlikadani
9ed6ed59ee Implement new actiontype: Collect, #484
To collect sweet berries from bush, and collect from composter
2019-07-18 09:58:09 +02:00
montlikadani
deba8e6f45 Added option to quests to prevent quest progress increase in restricted area
https://github.com/Zrips/Jobs/issues/166#issuecomment-511266927
2019-07-17 21:31:19 +02:00
montlikadani
80ab006084 Added Cat as entity, #480 2019-07-17 12:21:23 +02:00
montlikadani
fb392c0cd1 Fix incorrect entity max health
Monster damage option will work again when using the Kill action for jobs.
https://github.com/Zrips/Jobs/issues/429#issuecomment-511219013
2019-07-14 19:30:27 +02:00
montlikadani
3cc2c97ec8 Added option to disable the ScheduleManager to prevent memory leak issue
By default this has been disabled, because the plugin automatically creates the task, when we don't want to make boosts with scheduleManager.
2019-07-14 14:45:10 +02:00
montlikadani
1f85c13335 Fixed issue when converted the database and the "truncate" is removed in latest sqlite
- Also fixed issue when converted then the player data not show to player
2019-07-12 18:29:00 +02:00
montlikadani
34dcb3d41a Jobs placeholders list now modifiable the page row
- Fixed issue when used the jobs top clear scoreboard then not removed the scoreboard
- Jobs top help info message now executed when the job is specified
- Now if the MySQL settings (account) is incorrect then not send "creating table..."
2019-07-12 17:46:25 +02:00
montlikadani
9d46a689e2 Anyway, without job placeholders not work... 2019-07-11 10:41:58 +02:00
montlikadani
6225848693 Remove some not used values
- Added placeholders to parse when the player not in at least 1 job:
  - %jobsr_user_withoutjob_level%
  - %jobsr_user_withoutjob_exp%
  - %jobsr_user_withoutjob_job%
  - %jobsr_user_withoutjob_points%
  - %jobsr_user_withoutjob_totalpoints%
  - %jobsr_user_withoutjob_archived_jobs%
- Jobs placeholders command should work from console
2019-07-11 10:34:54 +02:00
montlikadani
812b54ffa7 Fix archived jobs are disappeared when switch server, #475 2019-07-10 12:45:02 +02:00
montlikadani
c2cefe784a Temporary level down message
More options will be added later
2019-07-02 14:27:06 +02:00
montlikadani
5daae998f0 Anyway, add some informations 2019-06-29 19:08:50 +02:00
montlikadani
4d3106e585 Added option to ignore the tools (items) when using durability losing option
+ supports enchantments
2019-06-29 19:00:18 +02:00
montlikadani
dd8a717271 Added option to save the toggled actionbar/bossbar values to a file
- Fixed issue when the /jobs gtop clear not removed the scoreboard
- Deprecate some methods
- Fixed issue when the nearbyEntities is invalid under 1.8 (armor stand will not work in this version)
2019-06-27 18:03:52 +02:00
montlikadani
a6b3b42da4 Generate new jobConfig file at reload when removed
- Cod has internal ID and should work, #459
2019-06-24 15:02:01 +02:00
montlikadani
f8519abfa1 Add some informations about deprecated values
- Melon block should work now
- With -1 potion ids are not generated at server start
2019-06-18 20:30:25 +02:00
Zrips
f52d235854 Quest recording for resuming after server restart or changing server
STRIPLOGS should be included when translating words
Lets add correct daily quest count
2019-06-17 12:44:42 +03:00
Zrips
642b1bc176 And lets include blast furnace to furnace and smoker group 2019-06-14 16:52:51 +03:00
Zrips
7f4c85a4ad Lets include Smoker into smelt event 2019-06-14 16:45:14 +03:00
Zrips
9cac1806e2 Best way to go: Make your own thing 2019-06-14 16:20:42 +03:00
Zrips
153b573040 Better way to determine enchantment 2019-06-14 12:44:12 +03:00
Zrips
e5a1e00647 Lets simplify transletable words for items 2019-06-10 15:01:37 +03:00
montlikadani
3b42627cb8 Added firework shoot when leveling up
- Fixed NPE when entered /jobs playerinfo command, #456
2019-06-08 18:27:23 +02:00
Draycia
6c18f482d0
Set job in JobsPrePaymentEvent 2019-06-05 04:19:55 -07:00
Draycia
d4543c341e
Relocate JobsPrePaymentEvent import 2019-06-05 00:50:42 -07:00
Draycia
22f4cc7fa6
Add JobsPrePaymentEvent
Add event to allow plugins to modify payments per player and per job before they're added to the delayed payment batch.
2019-06-05 00:46:50 -07:00
montlikadani
6f082c7ca9 Added option to disable payment if player riding, #437 2019-06-04 19:13:07 +02:00
montlikadani
875f2a0b3b Let's add short digit numbers, #442
This should fix the issue, when the placeholder used in example on scoreboard, but the double return number does not shorted to digit numbers
2019-06-03 16:41:02 +02:00
montlikadani
5a651d3cc7 Sign char limit is 16, #443
We do not need to short the player name to 8 character to look nicely on sign, for now if the name reach 15+ chars then write "~" after the name to short
2019-06-01 23:40:55 +02:00
montlikadani
00393ea4c2 Changes in enchantments
- Removed the broadcast skill ups levels, this already exist on level up
- Removed enchantments from jobConfig due to prevent console errors, that some users don't know what is, because not read it (If you want to add enchantments just find and add it, that compatible with your client version)
- Now the enchanted names are generated successfully when plugin starts, for now the 1.13+ enchantments names are not the shorted names, such as durability, instead the fully name, suc as unbreaking (durability and other shorted names, are used in only 1.12 and under)
2019-06-01 13:28:38 +02:00
montlikadani
2a93f1b461 Fix money dupping issue (not full)
Related issue: #438
2019-05-30 20:03:09 +02:00
montlikadani
23e349bd10 Check for null if possible
- Fix NPE when a item not found in enchant_table
- Melon can be used for now as melon_block
- We needs the redstone_lamp_on material, #440
2019-05-30 18:40:41 +02:00
Zrips
1db6723904 Some extra examples of new quest system with default quests for all jobs 2019-05-27 12:11:55 +03:00
Zrips
03c18a98a1 Actual multi-objective quest thingy 2019-05-27 11:46:09 +03:00
Zrips
f870e7f5dd Lets inform when we cant recognize enchant name for enchanter
Lets fix enchant name translation
2019-05-26 19:29:09 +03:00
Zrips
be0bb1ef15 Fixing McMMO issue 2019-05-26 12:36:00 +03:00
Zrips
671f4ff15a Permission nodes should be for OP by default 2019-05-26 11:49:03 +03:00
Zrips
efad176d17 We have to convert slab type into String 2019-05-26 11:22:20 +03:00
Zrips
7cbdf51713 Lets catch MythicMob exception for issue with new API. Further update is
needed
2019-05-26 10:59:32 +03:00
montlikadani
75b1ab8e0a Fixed NPE, when break a block and checks air in hand instead of item, #427
- Lets try to ignore recently updated deprecated methods
2019-05-20 16:38:16 +02:00
montlikadani
59f013ba36 Stability improvements in events to reduce ram usage, #425
- Minimize sign saving
2019-05-19 17:41:01 +02:00
montlikadani
10d74e9593 Now works the turtle breed and other egg, #354
- Update spigot to 1.14.1
- Remove not-used deprecated method
2019-05-16 18:56:10 +02:00
montlikadani
ee94189989 Compile fix 2019-05-12 17:28:21 +02:00
montlikadani
4e47bf2f4f Fix potion consume event in 1.8 versions, #418
The potion drink action will be removed soon. It seems some potions has 3-4 types and needs to be known what types of, but not described.
2019-05-12 15:14:34 +02:00
montlikadani
1b818f5d05 Added confirmation timer to leave and leaveall, #386
This not tested
2019-05-09 18:31:49 +02:00
montlikadani
afb07a69d4 #413 Now checks the papi version when using old version and update to latest
- Last commit fix for offlineplayer, we not using this
2019-05-08 12:56:28 +02:00
montlikadani
2147c270ea Lets start the papi expansion update
This will supports the dev. version of PlaceholderAPI, not tested
2019-05-06 19:52:09 +02:00
montlikadani
eace433f7d Lets use the NMS classes to ignore errors 2019-05-06 19:18:15 +02:00
montlikadani
02ad7df873 Fix last commit player NOT monster
- Fix incomplete-switch argument
2019-05-05 13:20:32 +02:00
montlikadani
c5dc27c072 Possible fix for removing the player from list 2019-05-04 14:09:25 +02:00
montlikadani
5fde6cb79c Re-add pig-zombie and minecart command
- We not using the deprecated codes, only old versions
2019-05-04 13:57:20 +02:00
montlikadani
197232cdfc Fixed ClassCastException when put a new sign
- Fixed issue when a player use the [toplist] line in sign, then randomly hide from sign
2019-05-03 16:35:23 +02:00
montlikadani
956acf8dd1 Fixed issue when the pay is not work, #409 2019-05-03 16:24:51 +02:00
Zrips
14253be043 Lets make it always in async 2019-05-02 21:00:36 +03:00
montlikadani
9d4e62da1e Fix #403 when changing the database 2019-05-02 15:30:47 +02:00
Zrips
a950fd3d47 Merge branch 'master' of https://github.com/Zrips/Jobs.git 2019-05-02 16:00:56 +03:00
Zrips
6ad9b86d3b Small step for a man... 2019-05-02 15:59:22 +03:00
montlikadani
d6fe972a0e Lets fix wall banner has not the correct id
- Code cleanup
2019-05-02 14:52:35 +02:00
Zrips
23dee5d93e One step at a time 2019-05-02 15:35:24 +03:00
montlikadani
cd35cc75f2 Initial 1.14 support 2019-05-01 13:19:13 +02:00
montlikadani
6ee818594b Lets start update to 1.14 2019-04-28 17:00:40 +02:00