AuraDevelopmentTeam / InvSync

This plugin synchronizes the player inventory with a database
GNU General Public License v3.0
12 stars 10 forks source link

Achievements get announced when they get synchronized #10

Closed BrainStone closed 7 years ago

BrainStone commented 7 years ago

Issue Description:

When achievments are synchronized they get announced as if the player just got them.

What happens:

When the server synchronizes the achievements, new ones get announced.

What you expected to happen:

No announcements

Steps to reproduce:

  1. Get some achievements
  2. Leave server
  3. Delete stats file
  4. Join server
  5. Get greeted by achievement got message(s)

Affected Versions (Do not use "latest"):

BrainStone commented 7 years ago

Comment from Meronat on IRC

I believe it's thrown but I'm not sure. The GrantAchievementEvent extends the MessageChannelEvent so you can cancel the messages Event#setMessageCancelled(true)