Skip to content

Commit c258a8f

Browse files
committed
Add PlayerRequirement for Tasks
1 parent f970551 commit c258a8f

File tree

2 files changed

+256
-148
lines changed

2 files changed

+256
-148
lines changed

src/main/java/dev/le_app/mcss_api_java/PlayerRequirement.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,13 @@ public Integer getValue() {
1515
return value;
1616
}
1717

18+
public static PlayerRequirement findByVal(Integer abbr){
19+
for(PlayerRequirement v : values()){
20+
if( v.getValue() == abbr ){
21+
return v;
22+
}
23+
}
24+
throw new IllegalArgumentException("No PlayerRequirement with value " + abbr);
25+
}
26+
1827
}

0 commit comments

Comments
 (0)