diff --git a/src/me/blackvein/quests/Quests.java b/src/me/blackvein/quests/Quests.java index baa2428e3..c478e0b73 100644 --- a/src/me/blackvein/quests/Quests.java +++ b/src/me/blackvein/quests/Quests.java @@ -1444,7 +1444,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, } Quester quester = getQuester(target.getName()); - quester.questPoints = points; + quester.questPoints -= Math.abs(points); player.sendMessage(GOLD + "Took away " + PURPLE + points + GOLD + " Quest Points from " + GREEN + target.getName() + GOLD + "\'s."); target.sendMessage(GREEN + player.getName() + GOLD + " took away " + PURPLE + points + GOLD + "Quest Points."); @@ -1491,7 +1491,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, } Quester quester = getQuester(target.getName()); - quester.questPoints += points; + quester.questPoints += Math.abs(points); player.sendMessage(GOLD + "Gave " + PURPLE + points + GOLD + " Quest Points to " + GREEN + target.getName() + GOLD + "\'s."); target.sendMessage(GREEN + player.getName() + GOLD + " gave you " + PURPLE + points + GOLD + "Quest Points."); diff --git a/src/plugin.yml b/src/plugin.yml index 281b8a25f..9d621a96e 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -46,6 +46,12 @@ permissions: quests.admin.points: description: Set a players Quest Points default: op + quests.admin.takepoints: + description: Take away a players Quest Points + default:op + quests.admin.givepoints: + description: Give a player Quest Points + default: op quests.admin.pointsall: description: Set all players' Quest Points default: op