2021-01-03 07:21:15 +00:00
|
|
|
package dev.plex.rank;
|
2020-10-27 21:56:05 +00:00
|
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
2021-01-03 07:21:15 +00:00
|
|
|
import dev.plex.rank.enums.Rank;
|
2022-01-04 03:04:39 +00:00
|
|
|
import java.util.List;
|
2022-01-27 21:22:28 +00:00
|
|
|
import lombok.Getter;
|
2022-01-04 03:04:39 +00:00
|
|
|
|
2020-10-27 21:56:05 +00:00
|
|
|
@Getter
|
|
|
|
public class DefaultRankObj
|
|
|
|
{
|
2020-10-28 19:07:02 +00:00
|
|
|
private final String prefix;
|
|
|
|
private final String loginMSG;
|
2020-10-28 03:49:56 +00:00
|
|
|
private final List<String> permissions;
|
2020-10-27 21:56:05 +00:00
|
|
|
|
|
|
|
public DefaultRankObj(Rank rank)
|
|
|
|
{
|
2020-10-28 19:07:02 +00:00
|
|
|
this.prefix = rank.getPrefix();
|
|
|
|
this.loginMSG = rank.getLoginMSG();
|
2020-10-27 21:56:05 +00:00
|
|
|
this.permissions = Lists.newArrayList();
|
2020-10-28 19:07:02 +00:00
|
|
|
permissions.add("example.permission");
|
2020-10-27 21:56:05 +00:00
|
|
|
}
|
|
|
|
}
|