Message Repeat
This commit is contained in:
61
src/main/java/plugin/config/Config.java
Normal file
61
src/main/java/plugin/config/Config.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package plugin.config;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author SLHAF
|
||||
*/
|
||||
public class Config {
|
||||
private Long owner;
|
||||
private ArrayList<Long> blacklistGroupIds = new ArrayList<>();
|
||||
|
||||
public Config() {
|
||||
}
|
||||
|
||||
public Config(Long owner, ArrayList<Long> blacklistGroupIds) {
|
||||
this.owner = owner;
|
||||
this.blacklistGroupIds = blacklistGroupIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取
|
||||
*
|
||||
* @return owner
|
||||
*/
|
||||
public Long getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置
|
||||
*
|
||||
* @param owner
|
||||
*/
|
||||
public void setOwner(Long owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取
|
||||
*
|
||||
* @return blacklistGroupIds
|
||||
*/
|
||||
public ArrayList<Long> getBlacklistGroupIds() {
|
||||
return blacklistGroupIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置
|
||||
*
|
||||
* @param blacklistGroupIds
|
||||
*/
|
||||
public void setBlacklistGroupIds(ArrayList<Long> blacklistGroupIds) {
|
||||
this.blacklistGroupIds = blacklistGroupIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "owner: " + owner + ", blacklistGroups: " + Arrays.toString(blacklistGroupIds.toArray());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user