-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed Spigot Api version to prevent a dupe exploit in versions high…
…er than 1.9, Added a way to apply effects only if better than the effect that has the player
- Loading branch information
Showing
7 changed files
with
86 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/io/github/nik2143/customgapple/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.github.nik2143.customgapple; | ||
|
||
public class Configuration { | ||
|
||
public int defaultAmount; | ||
public int defaultDuration; | ||
public boolean applyonlybetter; | ||
|
||
public Configuration(){ | ||
loadConfig(); | ||
} | ||
|
||
public void loadConfig(){ | ||
defaultAmount = CustomGapple.getCustomGapple().getConfig().getInt("Default-Amount"); | ||
defaultDuration = CustomGapple.getCustomGapple().getConfig().getInt("Default-Duration"); | ||
applyonlybetter = CustomGapple.getCustomGapple().getConfig().getBoolean("apply-only-better",false); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 45 additions & 6 deletions
51
src/main/java/io/github/nik2143/customgapple/listeners/EatGappleListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#Amount used when isn't specified in command | ||
Default-Amount: 64 | ||
#Duration in seconds used when isn't specified in command | ||
Default-Duration: 20 | ||
Default-Duration: 20 | ||
#Apply only effects better than the effects that has the player | ||
apply-only-better: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters