File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed
src/net/estinet/gFeatures/SQL/Player Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ package net .estinet .gFeatures .SQL .Player ;
2
+
3
+ public class Key {
4
+
5
+ }
You can’t perform that action at this time.
0 commit comments