From 59410de5abef86c6d20a3834c265572fca0e2a3a Mon Sep 17 00:00:00 2001 From: Driftay Date: Sun, 30 Jun 2019 23:33:38 -0400 Subject: [PATCH] Fixed Error --- src/main/java/com/massivecraft/factions/cmd/CmdPointsAdd.java | 3 +-- src/main/java/com/massivecraft/factions/zcore/util/TL.java | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdPointsAdd.java b/src/main/java/com/massivecraft/factions/cmd/CmdPointsAdd.java index aea36a91..8197b61e 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdPointsAdd.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdPointsAdd.java @@ -1,7 +1,5 @@ package com.massivecraft.factions.cmd; -import com.massivecraft.factions.FPlayer; -import com.massivecraft.factions.FPlayers; import com.massivecraft.factions.Faction; import com.massivecraft.factions.Factions; import com.massivecraft.factions.struct.Permission; @@ -42,6 +40,7 @@ public class CmdPointsAdd extends FCommand { assert faction != null; faction.setPoints(faction.getPoints() + argAsInt(1)); + fme.msg(TL.COMMAND_POINTS_SUCCESSFUL, faction, argAsInt(1)); } diff --git a/src/main/java/com/massivecraft/factions/zcore/util/TL.java b/src/main/java/com/massivecraft/factions/zcore/util/TL.java index 7cd0b0f3..4d399e36 100644 --- a/src/main/java/com/massivecraft/factions/zcore/util/TL.java +++ b/src/main/java/com/massivecraft/factions/zcore/util/TL.java @@ -542,7 +542,9 @@ public enum TL { COMMAND_PERM_SET("&c&l[!]&7 Set permission&c %1$s &7to &c%2$s &7for relation&c %3$s"), COMMAND_PERM_TOP("RCT MEM OFF ALLY TRUCE NEUT ENEMY"), - COMMAND_POINTS_FAILURE(""), + COMMAND_POINTS_FAILURE("&c&l[!] &c{faction} does not exist."), + COMMAND_POINTS_SUCCESSFUL("&c&l[!] &7You have given &b%1$s &e%2$s &7points!"), + COMMAND_ADDPOINTS_DESCRIPTION("Add Points to Faction"), COMMAND_PERMANENT_DESCRIPTION("Toggles a permanent faction option"), COMMAND_PERMANENT_GRANT("&c&l[!]&7 added permanent status to"),