This commit is contained in:
okx-code
2019-06-14 21:05:48 +01:00
parent cd57aaae10
commit 56f8b5d09e
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ plugins {
} }
group 'sh.okx' group 'sh.okx'
version '3.5.3' version '3.5.4'
repositories { repositories {
mavenCentral() mavenCentral()
@@ -30,7 +30,7 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.6' annotationProcessor 'org.projectlombok:lombok:1.18.6'
testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' compile 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
compile('net.milkbowl.vault:VaultAPI:1.7') { compile('net.milkbowl.vault:VaultAPI:1.7') {
exclude group: 'org.bukkit' exclude group: 'org.bukkit'
@@ -16,7 +16,7 @@ public class McMMOSkillRequirement extends ProgressiveRequirement {
@Override @Override
public double getProgress(Player player) { public double getProgress(Player player) {
return McMMOSkillUtil.getInstance().getSkillLevel(player, getValueString()); return McMMOSkillUtil.getInstance().getSkillLevel(player, getSub());
} }
@Override @Override
@@ -66,7 +66,7 @@ public class McMMOSkillUtil {
return instance; return instance;
} }
public String[] getSkills() { /*public String[] getSkills() {
try { try {
Enum<?>[] skills = (Enum<?>[]) values.invoke(null); Enum<?>[] skills = (Enum<?>[]) values.invoke(null);
String[] stringSkills = new String[skills.length]; String[] stringSkills = new String[skills.length];
@@ -77,7 +77,7 @@ public class McMMOSkillUtil {
} catch (IllegalAccessException | InvocationTargetException e) { } catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }*/
public int getSkillLevel(Player player, String skill) { public int getSkillLevel(Player player, String skill) {
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player); McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
+1 -1
View File
@@ -1,5 +1,5 @@
name: Rankup name: Rankup
version: 3.5.3 version: 3.5.4
main: sh.okx.rankup.Rankup main: sh.okx.rankup.Rankup
author: Okx author: Okx
depend: [Vault] depend: [Vault]