*Fix for takepoints command

This commit is contained in:
Zino 2013-08-05 12:29:02 +02:00
parent 89156410e4
commit f235b2da23
2 changed files with 8 additions and 2 deletions

View File

@ -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.");

View File

@ -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