summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-03-31 19:38:29 +1100
committermd_5 <git@md-5.net>2017-03-31 19:38:29 +1100
commitc0d10c54ae8f2f0a875da4c717d55c701fa5b369 (patch)
tree883dd7b3e9bc497d13566d2888cc8d8d56114006 /src
parent7fd370c8c087679c0324e2acf91efa8751df0273 (diff)
downloadbukkit-c0d10c54ae8f2f0a875da4c717d55c701fa5b369.tar
bukkit-c0d10c54ae8f2f0a875da4c717d55c701fa5b369.tar.gz
bukkit-c0d10c54ae8f2f0a875da4c717d55c701fa5b369.tar.lz
bukkit-c0d10c54ae8f2f0a875da4c717d55c701fa5b369.tar.xz
bukkit-c0d10c54ae8f2f0a875da4c717d55c701fa5b369.zip
Deprecate Achievements as they are not present in future versions of Minecraft
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/Achievement.java2
-rw-r--r--src/main/java/org/bukkit/entity/Player.java6
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerAchievementAwardedEvent.java2
3 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Achievement.java b/src/main/java/org/bukkit/Achievement.java
index ee874ee6..2a3d7667 100644
--- a/src/main/java/org/bukkit/Achievement.java
+++ b/src/main/java/org/bukkit/Achievement.java
@@ -2,7 +2,9 @@ package org.bukkit;
/**
* Represents an achievement, which may be given to players.
+ * @deprecated future versions of Minecraft do not have achievements
*/
+@Deprecated
public enum Achievement {
OPEN_INVENTORY,
MINE_WOOD (OPEN_INVENTORY),
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 2ae9f6c2..4436f5d5 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -406,7 +406,9 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
*
* @param achievement Achievement to award
* @throws IllegalArgumentException if achievement is null
+ * @deprecated future versions of Minecraft do not have achievements
*/
+ @Deprecated
public void awardAchievement(Achievement achievement);
/**
@@ -415,7 +417,9 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
*
* @param achievement Achievement to remove
* @throws IllegalArgumentException if achievement is null
+ * @deprecated future versions of Minecraft do not have achievements
*/
+ @Deprecated
public void removeAchievement(Achievement achievement);
/**
@@ -424,7 +428,9 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
* @param achievement the achievement to check
* @return whether the player has the achievement
* @throws IllegalArgumentException if achievement is null
+ * @deprecated future versions of Minecraft do not have achievements
*/
+ @Deprecated
public boolean hasAchievement(Achievement achievement);
/**
diff --git a/src/main/java/org/bukkit/event/player/PlayerAchievementAwardedEvent.java b/src/main/java/org/bukkit/event/player/PlayerAchievementAwardedEvent.java
index e33fade8..a57a93d7 100644
--- a/src/main/java/org/bukkit/event/player/PlayerAchievementAwardedEvent.java
+++ b/src/main/java/org/bukkit/event/player/PlayerAchievementAwardedEvent.java
@@ -7,7 +7,9 @@ import org.bukkit.event.HandlerList;
/**
* Called when a player earns an achievement.
+ * @deprecated future versions of Minecraft do not have achievements
*/
+@Deprecated
public class PlayerAchievementAwardedEvent extends PlayerEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private final Achievement achievement;