Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement