Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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 ChatUtil chatUtil;
  19.  
  20. public Game(Plugin plugin){
  21. this.plugin = plugin;
  22. this.chatUtil = new ChatUtil(this);
  23. }
  24.  
  25. public ChatUtil getChatUtil(){
  26. return chatUtil;
  27. }
  28. public Plugin getPlugin(){
  29. return plugin;
  30. }
  31.  
  32. }
  33.  
  34. public class GamePlugin extends JavaPlugin{
  35.  
  36. private Game game;
  37.  
  38. @Override
  39. public void onEnable(){
  40. this.game = new Game(this);
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement