summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/settings/Groups.java
blob: 06565d37662a121d71ef6660c3d80bc6098e025a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.earth2me.essentials.settings;

import com.earth2me.essentials.storage.Comment;
import com.earth2me.essentials.storage.MapType;
import com.earth2me.essentials.storage.StorageObject;
import java.util.LinkedHashMap;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
public class Groups extends StorageObject
{	
	public Groups() {
		GroupOptions defaultOptions = new GroupOptions();
		groups.put("default", defaultOptions);
	}
	@Comment(
	{
		"The order of the groups matters, the groups are checked from top to bottom.",
		"All group names have to be lower case.",
		"The groups can be connected to users using the permission essentials.groups.groupname"
	})
	@MapType(GroupOptions.class)
	private LinkedHashMap<String, GroupOptions> groups = new LinkedHashMap<String, GroupOptions>();
}