Skip to content

Commit f905ea1

Browse files
Merge pull request #409 from IPECTER/main
Add Support of WorldGuard, Residence, FactionsClaim, ChestProtect
2 parents 23f2625 + 62ce1f9 commit f905ea1

39 files changed

+578
-274
lines changed

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ body:
3939
attributes:
4040
label: Alternatives
4141
description: What alternatives have you considered?
42-
value: plugins... commands...
42+
value: plugins... commands...
4343
- type: markdown
4444
id: thanks
4545
attributes:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ALL CONTRIBUTIONS WELCOME :)
22

33
This is a community project, and we welcome contributions of all kinds, including
4-
code, documentation, and bug reports. We also welcome contributions of all sizes,
4+
code, documentation, and bug reports. We also welcome contributions of all sizes,
55
from small typo fixes to large new features.
66

77
Thanks for your interest in contributing!

LICENSE.md

Lines changed: 160 additions & 160 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 67 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Adapt
1+
# Adapt
22

33
[![image](https://github.com/VolmitSoftware/Adapt/raw/main/storepage/adapt-tc.png)](https://github.com/VolmitSoftware/Adapt/wiki/Why-did-you-click)
44

@@ -10,22 +10,34 @@ _Adapt is a drag and drop solution for balanced passive abilities and skills tha
1010

1111
### Description
1212

13-
Adapt Abilities are all accessible in the in-game GUI (Right-clicking any Bookshelf **_Face_**) providing a more user-friendly experience to a "skills" system. Most servers want to increase the quality of the "vanilla" experience. Most Skill based plugins are about powers, game breaking systems, and riddles with bugs. That's where Adapt comes in. Lightweight on the server, and providing mere quality of life enhancements to a user's experience. Below is a **WIP** List of features (_and descriptions_) that ill fill when i can. But this should give you a good idea of the roadmap for this plugin! Keep in mine this all WIP, can change at any time, and all of these can be configured / disabled!
13+
Adapt Abilities are all accessible in the in-game GUI (Right-clicking any Bookshelf **_Face_**) providing a more
14+
user-friendly experience to a "skills" system. Most servers want to increase the quality of the "vanilla" experience.
15+
Most Skill based plugins are about powers, game breaking systems, and riddles with bugs. That's where Adapt comes in.
16+
Lightweight on the server, and providing mere quality of life enhancements to a user's experience. Below is a **WIP**
17+
List of features (_and descriptions_) that ill fill when i can. But this should give you a good idea of the roadmap for
18+
this plugin! Keep in mine this all WIP, can change at any time, and all of these can be configured / disabled!
1419

1520
The master branch is for the latest version of minecraft.
1621

1722
### Language and Localization
1823

19-
Do you know a language other than english? do you want to be a big part in Adapt's localization into different languages? Join the discord and let us know, or [Click Here](https://gitlocalize.com/repo/8085), and you can help is remotely with language localizations! if you don't see a language you can easily add it, or let us know here in discussions! We take this on an Honor System, so please only if you are confident in the language submit a translation key, they will be verified.
24+
Do you know a language other than english? do you want to be a big part in Adapt's localization into different
25+
languages? Join the discord and let us know, or [Click Here](https://gitlocalize.com/repo/8085), and you can help is
26+
remotely with language localizations! if you don't see a language you can easily add it, or let us know here in
27+
discussions! We take this on an Honor System, so please only if you are confident in the language submit a translation
28+
key, they will be verified.
2029

2130
# [Support](https://discord.gg/volmit) **|** [Documentation](https://docs.volmit.com/adapt/)
2231

2332
# Building
2433

25-
### _Consider supporting our development by buying Adapt on [spigot](https://www.spigotmc.org/resources/adapt-leveling-skills-and-abilities.103790/)! We work hard to make Adapt the best it can be for everyone._
34+
### _Consider supporting our development by buying Adapt
35+
on [spigot](https://www.spigotmc.org/resources/adapt-leveling-skills-and-abilities.103790/)! We work hard to make Adapt
36+
the best it can be for everyone._
2637

27-
28-
Building Adapt is not as Straightforward as [Iris](https://www.spigotmc.org/resources/iris-world-gen-custom-biome-colors.84586/), though you will need to setup a few things if your system has never been used for java development.
38+
Building Adapt is not as Straightforward
39+
as [Iris](https://www.spigotmc.org/resources/iris-world-gen-custom-biome-colors.84586/), though you will need to setup a
40+
few things if your system has never been used for java development.
2941

3042
<details>
3143

@@ -35,7 +47,8 @@ Building Adapt is not as Straightforward as [Iris](https://www.spigotmc.org/reso
3547

3648
### IDE Builds (for development & Compilation)
3749

38-
You NEED TO BE USING Intelij To build this project, or anything that can support the plugin [Manifold](https://plugins.jetbrains.com/plugin/10057-manifold)
50+
You NEED TO BE USING Intelij To build this project, or anything that can support the
51+
plugin [Manifold](https://plugins.jetbrains.com/plugin/10057-manifold)
3952

4053
## Preface: if you need help compiling ask for support in the [discord](https://discord.gg/volmit), we give help regardless if you want to donate to us on spigot or compile it here :) we just want to be sure that you are able to use and enjoy the software regardless of circumstance.
4154

@@ -56,30 +69,34 @@ You NEED TO BE USING Intelij To build this project, or anything that can support
5669
5. Quit & Reopen Terminal and verify with `echo $JAVA_HOME`. It should print a directory
5770

5871
3. Setup Gradle
72+
5973
<details>
6074
<summary> Gradle Setup </summary>
6175

62-
* Run `gradlew setup` any time you get dependency issues with craftbukkit
63-
* Configure ITJ Gradle to use JDK 17 (in settings, search for gradle)
64-
* Resync the project & run your newly created task (under the development folder in gradle tasks!)
65-
76+
* Run `gradlew setup` any time you get dependency issues with craftbukkit
77+
* Configure ITJ Gradle to use JDK 17 (in settings, search for gradle)
78+
* Resync the project & run your newly created task (under the development folder in gradle tasks!)
79+
6680
</details>
67-
81+
6882
4. INSTALL [MANIFOLD](https://plugins.jetbrains.com/plugin/10057-manifold)
69-
5. If this is your first time building Adapt for MC 1.19+ run `gradlew setup` inside the root Adapt project folder. Otherwise, skip this step. Grab a coffee, this may take up to 5 minutes depending on your cpu & internet connection.
83+
5. If this is your first time building Adapt for MC 1.19+ run `gradlew setup` inside the root Adapt project folder.
84+
Otherwise, skip this step. Grab a coffee, this may take up to 5 minutes depending on your cpu & internet connection.
7085
6. Once the project has setup, run `gradlew adapt`
7186
7. The Adapt jar will be placed in `Adapt/build/Adapt-XXX-XXX.jar` Enjoy! Consider supporting us by buying it on spigot!
72-
87+
7388
</details>
7489

7590

7691
<details>
7792
<summary> SKILLS </summary>
7893

79-
_The skills below are the fundamentals that we want implemented but PLEASE feel free to make an issue request for an idea/Added Ability into adapt.
94+
_The skills below are the fundamentals that we want implemented but PLEASE feel free to make an issue request for an
95+
idea/Added Ability into adapt.
8096
Keep in mind it should be simple, but complex ones are welcome too!_
8197

8298
## Agility:
99+
83100
- [ ] Slide?
84101
- [X] Super jump (Allows a Crouch jump to launch yourself up to 5 blocks High)
85102
- [X] Wall jump (Jump on walls)
@@ -89,13 +106,15 @@ Keep in mind it should be simple, but complex ones are welcome too!_
89106
- [ ] Climb WOod
90107

91108
## Architect:
109+
92110
- [X] Temporary blocks (Crouch off a ledge)
93111
- [X] BuildersWand (Small) (You can place up to 16 blocks at once)
94112
- [ ] TypeReplace Blocks
95113
- [X] DontBreakGlass (Passive Silk-Touch for Glass only)
96114
- [ ] Forced Leaf Decay
97115

98116
## Axe:
117+
99118
- [ ] Tomahawk Throw
100119
- [X] Drop to inventory
101120
- [X] Axe Ground-Smash
@@ -105,18 +124,21 @@ Keep in mind it should be simple, but complex ones are welcome too!_
105124
- [ ] Wood Dupe?
106125

107126
## Brewing:
127+
108128
- [ ] Chance not to consume potion
109129
- [ ] Chance to refund ingredients
110130
- [X] Lingering Potions (Crafted potions last longer)
111131
- [X] Splash Range Increase (Chance to increase Range)
112132

113133
## Crafting:
134+
114135
- [X] Xp for crafting
115136
- [ ] Chance for Extras
116-
- [ ] offhand autocrafting
137+
- [ ] offhand autocrafting
117138
- [X] Deconstruction Table (De-craft to basics)
118139

119140
## Discovery:
141+
120142
- [ ] Tiny Potato
121143
- [ ] Armored Elytras
122144
- [X] Worldly Armor
@@ -125,19 +147,22 @@ Keep in mind it should be simple, but complex ones are welcome too!_
125147
- [X] Xp Damage Mitigation
126148

127149
## Enchanting:
150+
128151
- [X] XP Refund
129152
- [X] Lapis Refund (Chance per enchant to give Lapis)
130153
- [X] In-Inventory Enchanting (Books to Items)
131154
- [ ] Xp for making Bookshelf/Book/Table
132155
- [ ] Better Enchant Levels
133156

134157
## Excavation**:
158+
135159
- [ ] Dirt/Grass does not consume Durability
136160
- [X] Haste while digging
137161
- [X] Drop to inventory
138162
- [X] MultiTool (Merge multiple tools into one)
139163

140164
## Herbalism:
165+
141166
- [X] Hunger Shield (up to 50% less hunger consumption)
142167
- [X] Drop to inventory
143168
- [X] Replanted (replant items by right-clicking)
@@ -150,24 +175,27 @@ Keep in mind it should be simple, but complex ones are welcome too!_
150175
- [X] Faster Grow Aura
151176

152177
## Hunter:
178+
153179
- [X] Adrenaline (more damage lower the health)
154180
- [X] Drop to inventory
155181
- [X] Regen while in combat -> massive loss in hunger
156-
- [X] Resistance in combat -> massive loss in hunger
157-
- [X] Speed while in combat -> massive loss in hunger
158-
- [X] JumpBoost while in combat -> massive loss in hunger
159-
- [X] Luck while in combat -> massive loss in hunger
160-
- [X] Invisibility while in combat -> massive loss in hunger
182+
- [X] Resistance in combat -> massive loss in hunger
183+
- [X] Speed while in combat -> massive loss in hunger
184+
- [X] JumpBoost while in combat -> massive loss in hunger
185+
- [X] Luck while in combat -> massive loss in hunger
186+
- [X] Invisibility while in combat -> massive loss in hunger
161187
- [ ] Prevent the first damage proc
162188

163189
## Nether:
190+
164191
- [X] Wither Resist (Resistance to wither)
165192
- [X] Wither Skull Throw (Pvsshhh)
166193
- [ ] Soul Speed
167194
- [ ] Nether Tools Apply Wither
168195
- [ ] Nearby Withering applies regen
169196

170197
## Pickaxe:
198+
171199
- [X] Chisel ores (more ore, less durability)
172200
- [X] Vein-miner (Vein-miner)
173201
- [ ] Locate Nearest Ore:
@@ -177,46 +205,53 @@ Keep in mind it should be simple, but complex ones are welcome too!_
177205
- [ ] Chance not to eat Durability
178206

179207
## Ranged**:
208+
180209
- [X] Ranged Arrow Recovery (On hit, chance to refund)
181210
- [X] Ranged Force (More dps at range)
182211
- [X] Lunge SHot (Lunging will do damage)
183212
- [X] Piercing Shot (Pierce through enemies)
184213

185214
## Rift:
215+
186216
- [X] Remote Container Access (Remote Container Access)
187217
- [X] Short-Ranged "blink" (teleport)
188218
- [X] No-Place Enderchest (like /ec )
189219
- [X] Rift Recall (Teleport to a location)
190220
- [X] Resilience based on Ender Artifact Used (blink = 10% Enderperal = 25% etc)
191221

192222
## Seaborn:
223+
193224
- [X] WaterBreathing
194225
- [X] Passive Speed bonus while swimming
195226
- [ ] Night vision underwater
196227
- [ ] Passive Fish?
197228
- [ ] Water Refiles Hunger/regen
198229

199230
## Stealth:
200-
- [X] Snatching (close-range item Vacuum)
231+
232+
- [X] Snatching (close-range item Vacuum)
201233
- [X] Sneak-Speed (Destroy FOV in a single button press)
202234
- [X] Ghost Armor (Armor passively that grown on you, but only works for 1 hit)
203235
- [X] StealthSight
204236
- [ ] Sneak Attack
205237

206238
## Swords:
239+
207240
- [X] Machete (chopping blocks down)
208241
- [ ] Throwing Knife
209242
- [ ] Bleed Damage
210243
- [ ] More damage to Non-Armored Enemies
211244
- [ ] Turrets, Deploy Swords, that fling to a target
212245

213246
## Taming:
247+
214248
- [X] Tame Health Boost (Tames have more health)
215249
- [X] Tame Damage Boost (Tames do more DPS)
216250
- [X] Tame Health Regen (Tames have passive regen)
217251
- [ ] Tamed Vampirism (Familiar)
218252

219253
## Unarmed:
254+
220255
- [X] Unarmed Power (Make unarmed Viable)
221256
- [X] Sucker Punch (One PunCh!)
222257
- [ ] One-Punch man?
@@ -226,29 +261,31 @@ Keep in mind it should be simple, but complex ones are welcome too!_
226261
- [ ] Passive Strength while unarmed
227262

228263
## Chronos: _(Unimplemented)_
264+
229265
- [ ] Chronos Slowdown (Passive Slowdown for entities in the world near you)
230266
- [ ] Chronos Speed (Passive Speed for entities in the world near you)
231267

232268
## TragOul: _(Unimplemented)_
269+
233270
- [ ] Blood Mechanich and hurt yourself to get X
234271

235272
</details>
236273

237-
238274
## Credits
275+
239276
Helping out in any way you can is appreciated, and you will be listed here for your contributions :)
240277
<details>
241278
<summary> Language </summary>
242279

243-
* [NextdoorPsycho](https://github.com/NextdoorPsycho): English Translation
244-
* [Nowhere (Armin231)](https://github.com/Armin231): German Translation
245-
280+
* [NextdoorPsycho](https://github.com/NextdoorPsycho): English Translation
281+
* [Nowhere (Armin231)](https://github.com/Armin231): German Translation
282+
246283
</details>
247284
<details>
248285
<summary> Code </summary>
249286

250-
* [Vatuu](https://github.com/Vatuu)
251-
* [Cyberpwn](https://github.com/cyberpwnn)
252-
* [NextdoorPsycho](https://github.com/NextdoorPsycho)
253-
287+
* [Vatuu](https://github.com/Vatuu)
288+
* [Cyberpwn](https://github.com/cyberpwnn)
289+
* [NextdoorPsycho](https://github.com/NextdoorPsycho)
290+
254291
</details>

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ dependencies {
151151
implementation 'com.github.LoneDev6:api-itemsadder:3.2.5'
152152
implementation 'io.th0rgal:oraxen:1.94.0'
153153
implementation 'com.massivecraft:Factions:1.6.9.5-U0.6.21'
154+
implementation "com.github.angeschossen:ChestProtectAPI:3.6.0"
155+
implementation "com.github.TechFortress:GriefPrevention:16.18.1"
156+
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
154157

155158

156159
// Shaded

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
#
18-
1918
distributionBase=GRADLE_USER_HOME
2019
distributionPath=wrapper/dists
2120
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip

libs/CMILib1.2.5.2.jar

771 KB
Binary file not shown.

libs/Residence5.1.1.1.jar

980 KB
Binary file not shown.

src/main/java/com/volmit/adapt/Adapt.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
import com.volmit.adapt.api.world.AdaptServer;
2828
import com.volmit.adapt.commands.CommandAdapt;
2929
import com.volmit.adapt.content.gui.SkillsGui;
30+
import com.volmit.adapt.content.protector.ChestProtectProtector;
3031
import com.volmit.adapt.content.protector.FactionsClaimProtector;
32+
import com.volmit.adapt.content.protector.ResidenceProtector;
3133
import com.volmit.adapt.content.protector.WorldGuardProtector;
3234
import com.volmit.adapt.nms.NMS;
3335
import com.volmit.adapt.util.*;
@@ -70,13 +72,15 @@ public class Adapt extends VolmitPlugin {
7072
private SQLManager sqlManager;
7173
@Getter
7274
private ProtectorRegistry protectorRegistry;
75+
@Getter
76+
private Map<String, Window> guiLeftovers = new HashMap<>();
77+
7378

7479
public Adapt() {
7580
super();
7681
instance = this;
7782
}
7883

79-
8084
public static int getJavaVersion() {
8185
String version = System.getProperty("java.version");
8286
if (version.startsWith("1.")) {
@@ -175,9 +179,6 @@ public static void msg(String string) {
175179
}
176180
}
177181

178-
@Getter
179-
private Map<String, Window> guiLeftovers = new HashMap<>();
180-
181182
public static void hotloaded() {
182183
J.s(() -> {
183184
instance.guiLeftovers.values().forEach(window -> {
@@ -254,6 +255,12 @@ public void start() {
254255
if (getServer().getPluginManager().getPlugin("Factions") != null) {
255256
protectorRegistry.registerProtector(new FactionsClaimProtector());
256257
}
258+
if (getServer().getPluginManager().getPlugin("ChestProtect") != null) {
259+
protectorRegistry.registerProtector(new ChestProtectProtector());
260+
}
261+
if (getServer().getPluginManager().getPlugin("Residence") != null) {
262+
protectorRegistry.registerProtector(new ResidenceProtector());
263+
}
257264
}
258265

259266
@Override

0 commit comments

Comments
 (0)