From ef5f29792853bfe99dd18ca39d02182f30d97001 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 15 Jan 2019 18:57:02 -0500 Subject: [PATCH] Better deprecation --- .../java/me/blackvein/quests/CustomObjective.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/blackvein/quests/CustomObjective.java b/src/main/java/me/blackvein/quests/CustomObjective.java index b731fdf18..e7ccd7b5d 100644 --- a/src/main/java/me/blackvein/quests/CustomObjective.java +++ b/src/main/java/me/blackvein/quests/CustomObjective.java @@ -52,7 +52,7 @@ public abstract class CustomObjective implements Listener { } /** - * Add a piece of datum to the data map + * Add a detailed piece of datum to the data map * @param name * @param o */ @@ -63,6 +63,13 @@ public abstract class CustomObjective implements Listener { data.put(name, null); } } + /** + * Add a blank piece of datum to the data map + * @param name + */ + public void addDatum(String name) { + data.put(name, null); + } /** * Add null data for name @@ -71,7 +78,7 @@ public abstract class CustomObjective implements Listener { * @deprecated use addDatum() */ public void addData(String name) { - addDatum(name, null); + addDatum(name); } public Map getDescriptions() {