Skip to content

Commit 4da7d4a

Browse files
committed
Changes
1 parent 4b612d8 commit 4da7d4a

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package net.estinet.gFeatures.SQL.Player;
2+
3+
import java.util.HashMap;
4+
5+
import org.bukkit.entity.Player;
6+
7+
import net.estinet.gFeatures.gFeature;
8+
9+
public class EstiPlayer {
10+
private Player player;
11+
private String name;
12+
private String UUID;
13+
private HashMap<gFeature, EstiSet> data = new HashMap<>();
14+
15+
public EstiPlayer(Player p){
16+
name = p.getName();
17+
UUID = p.getUniqueId().toString();
18+
player = p;
19+
}
20+
public EstiPlayer(Player p, HashMap<gFeature, EstiSet> info){
21+
name = p.getName();
22+
UUID = p.getUniqueId().toString();
23+
data = info;
24+
player = p;
25+
}
26+
public String getName(){
27+
return name;
28+
}
29+
public String getUUID(){
30+
return UUID;
31+
}
32+
public HashMap<gFeature, EstiSet> getData(){
33+
return data;
34+
}
35+
public Player getPlayer(){
36+
return player;
37+
}
38+
public void addData(gFeature plugin, EstiSet datas){
39+
data.put(plugin, datas);
40+
}
41+
public void removeData(gFeature plugin, Key key){
42+
43+
}
44+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package net.estinet.gFeatures.SQL.Player;
2+
3+
import java.util.HashMap;
4+
5+
public class EstiSet<T> {
6+
private HashMap<Key, T> data = new HashMap<>();
7+
8+
public EstiSet(){}
9+
public EstiSet(HashMap<Key, T> datas){
10+
data = datas;
11+
}
12+
13+
public void addData(Key key, T info){
14+
data.put(key, info);
15+
}
16+
17+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.estinet.gFeatures.SQL.Player;
2+
3+
public class Key {
4+
5+
}

0 commit comments

Comments
 (0)