mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 09:08:05 +01:00
*Fix for takepoints command
This commit is contained in:
parent
89156410e4
commit
f235b2da23
@ -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.");
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user