mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-30 19:31:31 +01:00
Added Subtract
This commit is contained in:
parent
77cef81ed1
commit
6eefa49d87
@ -114,7 +114,15 @@ public class IslandLevel {
|
||||
division = 1;
|
||||
}
|
||||
|
||||
return getPoints() / division;
|
||||
long points = getPoints();
|
||||
long subtract = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml")).getFileConfiguration().getLong("Island.Levelling.Subtract");
|
||||
if(points >= subtract){
|
||||
points -= subtract;
|
||||
} else {
|
||||
points = 0;
|
||||
}
|
||||
|
||||
return points / division;
|
||||
}
|
||||
|
||||
public void checkLevelUp() {
|
||||
|
@ -191,6 +191,8 @@ Island:
|
||||
IncludeEmptyPointsInList: true
|
||||
# Island Level Points divided by value
|
||||
Division: 100
|
||||
# Points to subtract to Island Level Points
|
||||
Subtract: 1000
|
||||
Cooldown:
|
||||
# Time until Island level rescan expires
|
||||
Time: 60
|
||||
|
Loading…
Reference in New Issue
Block a user