Modifying the message that shows when someone gets an achievement

Discussion in 'Spigot Plugin Development' started by Dev_Richard, May 19, 2015.

  1. I would like to have the message for when an a player gets an achievement be sent to only specific players. Right now I have done a similar thing with join and leave messages. I would get the message from the event and then loop through all players on the server and only send to the applicable. But the PlayerAchievementAwardedEvent doesn't have a get message method so I have no idea how to do this for the achievements message.

    Any help would be greatly appreciated! :)
     
  2. @Dev_Richard the message can be found in the language file of Minecraft (the key is 'chat.type.achievement')