-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathTopTenData.java
More file actions
43 lines (34 loc) · 803 Bytes
/
TopTenData.java
File metadata and controls
43 lines (34 loc) · 803 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package world.bentobox.level.objects;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.World;
import com.google.gson.annotations.Expose;
/**
* This class stores the top ten.
*
* @author tastybento
*
*/
public class TopTenData {
// UniqueId is the world name
@Expose
private String uniqueId = "";
@Expose
private Map<String, Long> topTen = new ConcurrentHashMap<>();
public TopTenData(World k) {
uniqueId = k.getName().toLowerCase(Locale.ENGLISH);
}
/**
* @return the topTen
*/
public Map<String, Long> getTopTen() {
return topTen;
}
/**
* @param topTen the topTen to set
*/
public void setTopTen(Map<String, Long> topTen) {
this.topTen = topTen;
}
}