9
0
mirror of https://github.com/Auxilor/EcoJobs.git synced 2025-12-20 07:29:20 +00:00

Compare commits

...

14 Commits
1.0.0 ... 1.3.1

Author SHA1 Message Date
Auxilor
3780370caf libreforge-updater 2022-09-14 12:59:57 +01:00
Auxilor
e82eacf5b6 libreforge-updater 2022-09-13 19:15:37 +01:00
Auxilor
5a519aa263 libreforge-updater 2022-09-12 21:21:37 +01:00
Auxilor
4b9283c6de libreforge-updater 2022-09-12 17:15:34 +01:00
Auxilor
6316dddc0b libreforge-updater 2022-09-11 19:27:54 +01:00
Auxilor
4bab3ed8c2 Fixed /ecojobs givexp 2022-09-11 11:52:06 +01:00
Auxilor
3f6db2ba14 Merge remote-tracking branch 'origin/master' 2022-09-10 22:03:05 +01:00
Auxilor
ba3e0bb852 Updated to 1.0.1 2022-09-10 22:02:59 +01:00
Auxilor
7a45332837 Added update checker 2022-09-10 22:02:51 +01:00
Will FP
ddf1ef35e2 Update README.md 2022-09-10 17:07:25 +01:00
Will FP
273b8fe80a Update README.md 2022-09-10 16:33:51 +01:00
Auxilor
802681e3a5 Fixed slayer 2022-09-10 14:02:10 +01:00
Auxilor
f24e9d9ed9 Added farmer 2022-09-10 14:00:11 +01:00
Auxilor
682dc31b0c Added slayer 2022-09-10 13:55:45 +01:00
9 changed files with 226 additions and 12 deletions

View File

@@ -1,27 +1,27 @@
<h1 align="center">
<br>
<img src="https://i.imgur.com/FHqL960.png" alt="EcoJobs logo" width="256">
<img src="https://i.imgur.com/Qd617BL.png" alt="EcoJobs logo" width="256">
<br>
</h1>
<h4 align="center">Source code for EcoJobs, a premium spigot plugin.</h4>
<p align="center">
<a href="https://polymart.org/resource/ecojobs.1351">
<a href="https://polymart.org/resource/ecojobs.2857">
<img alt="spigot" src="https://img.shields.io/badge/polymart-EcoJobs-964B00?style=for-the-badge"/>
</a>
<a href="https://bstats.org/plugin/bukkit/EcoJobs" alt="bstats servers">
<img src="https://img.shields.io/bstats/servers/15502?color=964B00&style=for-the-badge"/>
<img src="https://img.shields.io/bstats/servers/16394?color=964B00&style=for-the-badge"/>
</a>
<a href="https://bstats.org/plugin/bukkit/EcoJobs" alt="bstats players">
<img src="https://img.shields.io/bstats/players/15502?color=964B00&style=for-the-badge"/>
<img src="https://img.shields.io/bstats/players/16394?color=964B00&style=for-the-badge"/>
</a>
<a href="https://discord.gg/ZcwpSsE/" alt="Discord">
<img src="https://img.shields.io/discord/452518336627081236?label=discord&style=for-the-badge&color=964B00"/>
</a>
</p>
[![Docs](https://i.imgur.com/4JciYrQ.png)](https://discord.gg/ZcwpSsE/)
[![Docs](https://i.imgur.com/7Ac2KTg.png)](https://discord.gg/ZcwpSsE/)
## License
*Click here to read [the entire license](https://github.com/Auxilor/EcoJobs/blob/master/LICENSE.md).*

View File

@@ -47,7 +47,7 @@ allprojects {
dependencies {
compileOnly 'com.willfp:eco:6.37.1'
implementation 'com.willfp:libreforge:3.96.0'
implementation 'com.willfp:libreforge:3.99.1'
implementation 'org.joml:joml:1.10.4'
compileOnly 'org.jetbrains:annotations:23.0.0'

View File

@@ -6,6 +6,7 @@ import com.willfp.eco.util.StringUtils
import com.willfp.eco.util.savedDisplayName
import com.willfp.eco.util.toNiceString
import com.willfp.ecojobs.jobs.Jobs
import com.willfp.ecojobs.jobs.giveExactJobExperience
import com.willfp.ecojobs.jobs.giveJobExperience
import com.willfp.ecojobs.jobs.hasJob
import org.bukkit.Bukkit
@@ -56,7 +57,7 @@ class CommandGiveXP(plugin: EcoPlugin) : Subcommand(plugin, "givexp", "ecojobs.c
return
}
player.giveJobExperience(
player.giveExactJobExperience(
job,
amount
)

View File

@@ -263,4 +263,6 @@ potions:
triggered: true
particles:
permanent: false
triggered: true
triggered: true
share-configs: true # If your configs are allowed to be used to gather data and improve the plugin. Nothing identifying (IP, Name, etc) is shared.

View File

@@ -1,3 +1,3 @@
resource-id: 0
resource-id: 2857
bstats-id: 16394
color: "&#964B00"

View File

@@ -97,4 +97,4 @@ effects:
conditions: [ ]
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmM4ZWJhZDcyYjc3ZGYzOTkwZTA3YmM4NjlhOTlhOGY4OTYyZDNjMTljNzZlMzlkOTk1NTNjYWU0MTMxY2M4In19fQ==
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBiYmVmMGE0YmNmMDNlMDQ5ZDU1NmRhMGJlZDZiNDFkZDkyOGI4OTdhNDJhZTAxZWZlYTY4NGI1NjFjNDMyZiJ9fX0=

View File

@@ -0,0 +1,119 @@
name: "&eFarmer"
description: "&8&oLevel up by farming crops"
unlocked-by-default: true
level-xp-requirements:
- 100
- 120
- 150
- 180
- 210
- 250
- 300
- 360
- 430
- 520
- 620
- 740
- 890
- 1000
- 1300
- 1500
- 1900
- 2200
- 2700
- 3200
- 3800
- 4600
- 5500
- 6600
- 7900
- 9500
- 11500
- 14000
- 17000
- 19000
- 24000
- 29000
- 34000
- 41000
- 50000
- 60000
- 70000
- 85000
- 100000
- 120000
- 150000
- 180000
- 210000
- 250000
- 300000
- 360000
- 440000
- 580000
- 750000
xp-gain-methods:
- trigger: mine_block
multiplier: 0.5
conditions: [ ]
filters:
blocks:
- "wheat"
- "potatoes"
- "beetroots"
- "carrots"
- "melon"
- "pumpkin"
- "cactus"
- "sugar_cane"
- "cocoa"
- "nether_wart"
- "bamboo"
- "sweet_berries"
- "glow_berries"
level-placeholders:
- id: "money"
value: "%level% * 0.25"
effects-description:
1:
- "&8» &8Earn &a$%money%&8 for each crop you farm"
rewards-description:
1:
- "&8» &8Earn &a$%money%&8 for each crop you farm"
level-up-messages:
1:
- "&8» &8Earn &a$%money%&8 for each crop you farm"
level-commands: [ ]
effects:
- id: give_money
args:
amount: "%level% * 0.25"
filters:
blocks:
- "wheat"
- "potatoes"
- "beetroots"
- "carrots"
- "melon"
- "pumpkin"
- "cactus"
- "sugar_cane"
- "cocoa"
- "nether_wart"
- "bamboo"
- "sweet_berries"
- "glow_berries"
triggers:
- mine_block
conditions: [ ]
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODMzNmUzMTVlMWFlOTk1NzJkYzljNzJhNjJhMTRiODU3Nzc0MWRjMzQ3MmM3NDEzZDdlYWE2NjdhMzA3YTNkNyJ9fX0=

View File

@@ -0,0 +1,92 @@
name: "&#8a0303Slayer"
description: "&8&oLevel up by killing mobs"
unlocked-by-default: true
level-xp-requirements:
- 100
- 120
- 150
- 180
- 210
- 250
- 300
- 360
- 430
- 520
- 620
- 740
- 890
- 1000
- 1300
- 1500
- 1900
- 2200
- 2700
- 3200
- 3800
- 4600
- 5500
- 6600
- 7900
- 9500
- 11500
- 14000
- 17000
- 19000
- 24000
- 29000
- 34000
- 41000
- 50000
- 60000
- 70000
- 85000
- 100000
- 120000
- 150000
- 180000
- 210000
- 250000
- 300000
- 360000
- 440000
- 580000
- 750000
xp-gain-methods:
- trigger: kill
multiplier: 0.05
conditions: [ ]
level-placeholders:
- id: "money"
value: "%level% / 10"
effects-description:
1:
- "&8» &8Earn &a$%money%&8 per heart of health that"
- " &8mobs you kill have"
rewards-description:
1:
- "&8» &8Earn &a$%money%&8 per heart of health that"
- " &8mobs you kill have"
level-up-messages:
1:
- "&8» &8Earn &a$%money%&8 per heart of health that"
- " &8mobs you kill have"
level-commands: [ ]
effects:
- id: give_money
args:
amount: "%v% * %level% * 0.1"
triggers:
- kill
conditions: [ ]
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY5MTllMGFjYzFiMjkzYThkNWY5NzI4NjkzMzZhN2VmZWRiMGJhNmY0YzdlMTkzODhkOGZiODEyNjBmMzIzYyJ9fX0=

View File

@@ -1,4 +1,4 @@
#libreforge-updater
#Sat Sep 10 12:58:46 BST 2022
version=1.0.0
#Wed Sep 14 12:59:56 BST 2022
version=1.3.1
plugin-name=EcoJobs