mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-18 01:42:32 +01:00
Added party levels
Parties now have XP and Levels. Party features such as party teleport and party chat have to be unlocked before they can be used by the party members
This commit is contained in:
@@ -3,6 +3,7 @@ package com.gmail.nossr50.util;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
||||
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
||||
import com.gmail.nossr50.datatypes.skills.SecondaryAbility;
|
||||
|
||||
@@ -30,7 +31,7 @@ public class StringUtils {
|
||||
}
|
||||
|
||||
public static String getPrettySecondaryAbilityString(SecondaryAbility secondaryAbility) {
|
||||
switch(secondaryAbility) {
|
||||
switch (secondaryAbility) {
|
||||
case HERBALISM_DOUBLE_DROPS:
|
||||
case MINING_DOUBLE_DROPS:
|
||||
case WOODCUTTING_DOUBLE_DROPS:
|
||||
@@ -46,6 +47,10 @@ public class StringUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static String getPrettyPartyFeatureString(PartyFeature partyFeature) {
|
||||
return createPrettyEnumString(partyFeature.toString());
|
||||
}
|
||||
|
||||
private static String createPrettyEnumString(String baseString) {
|
||||
String[] substrings = baseString.split("_");
|
||||
String prettyString = "";
|
||||
@@ -125,4 +130,5 @@ public class StringUtils {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user