BIG UPDATE!
 
 
 
 - Updated language files download link. THE OLD LINK FOR OLD VERSIONS WILL BE DELETED SOON, SO UPDATE IF YOU WANT TO KEEP USING THIS FUNCTION.\
- Added %chatgames_toggle% PAPI placeholder, will return true/false if player has games toggled or not.
ADDED DEVELOPER EVENT API Two events are now in place for developers to use them. The events are ChatGamesStartEvent and ChatGamesEndEvent. More events or API tools may be made later to improve this.
 
 Here are examples for both:
 
 
 
 
  Code (Java):
 
 
 
  @EventHandler
  
     
  public 
  void onChatGameEnd
  (ChatGamesEndEvent e
  ) 
  {
  
         
  if
  (e.
  getType
  (
  ) 
  == GameType.
  REACTION
  ) 
  {
  
             List
  <Player
  > winners 
  = e.
  getWinners
  (
  )
  ;
  
             
  for
  (Player p 
  : winners
  ) 
  {
  
                 p.
  sendMessage
  (
  "You won!"
  )
  ;
  
             
  }
  
         
  }
  
     
  }
  
  
  
     @EventHandler
  
     
  public 
  void onChatGameStart
  (ChatGamesStartEvent e
  ) 
  {
  
         
  if
  (e.
  getType
  (
  ) 
  == GameType.
  FILLOUT
  ) 
  {
  
             Bukkit.
  broadcastMessage
  (
  "The answer is: " 
  + e.
  getAnswer
  (
  ) 
  + 
  "!"
  )
  ;
  
         
  }
  
     
  }