View difference between Paste ID: HwF5WZB7 and MmVFYnRC
SHOW: | | - or go back to the newest paste.
1
public class ChatUtil{
2
3
private Game game;
4
5
public ChatUtil(Game game){
6
this.game = game;
7
}
8
9
public Game getGame(){
10
return game;
11
}
12
13
}
14
15
public class Game{
16
17
private Plugin plugin;
18
private Game game;
19
20
public Game(Plugin plugin){
21
this.plugin = plugin;
22
this.game = new Game(this);
23
}
24
25
public Plugin getPlugin(){
26
return plugin;
27
}
28
29
}
30
31
public class GamePlugin extends JavaPlugin{
32
33
private Game game;
34
35
@Override
36
public void onEnable(){
37
this.game = new Game(this);
38
39
}