Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.kgaz.bronie.smith;
- public enum SmithType {
- WILLIAM(3);
- private final Integer maxUpgrade;
- private SmithType(Integer maxUpgrade) {
- this.maxUpgrade = maxUpgrade;
- }
- public Integer getMaxUpgrade() {
- return maxUpgrade;
- }
- public static SmithType getFromString(String name) {
- if(name.equals("§eKowal William")) {
- return WILLIAM;
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement