package me.totalfreedom.plex.rank; import com.google.common.collect.Lists; import java.util.List; import lombok.Getter; import me.totalfreedom.plex.rank.enums.Rank; @Getter public class DefaultRankObj { private final String prefix; private final String loginMSG; private final List permissions; public DefaultRankObj(Rank rank) { this.prefix = rank.getPrefix(); this.loginMSG = rank.getLoginMSG(); this.permissions = Lists.newArrayList(); permissions.add("example.permission"); } }