rename class

This commit is contained in:
aPunch 2012-02-22 19:23:16 -06:00
parent db945616f2
commit df443fceb8
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ public class BlacksmithCharacter extends Character {
private final Blacksmith plugin; private final Blacksmith plugin;
private final List<Material> reforgeableItems = new ArrayList<Material>(); private final List<Material> reforgeableItems = new ArrayList<Material>();
private final Map<String, Calendar> cooldowns = new HashMap<String, Calendar>(); private final Map<String, Calendar> cooldowns = new HashMap<String, Calendar>();
private RepairSession session; private ReforgeSession session;
// Defaults // Defaults
private String busyWithPlayerMsg = Setting.BUSY_WITH_PLAYER_MESSAGE.asString(); private String busyWithPlayerMsg = Setting.BUSY_WITH_PLAYER_MESSAGE.asString();
@ -118,7 +118,7 @@ public class BlacksmithCharacter extends Character {
npc.chat(player, invalidItemMsg); npc.chat(player, invalidItemMsg);
return; return;
} }
session = new RepairSession(player, npc); session = new ReforgeSession(player, npc);
npc.chat(player, costMsg.replace("<price>", plugin.formatCost(player)).replace("<item>", npc.chat(player, costMsg.replace("<price>", plugin.formatCost(player)).replace("<item>",
hand.getType().name().toLowerCase().replace('_', ' '))); hand.getType().name().toLowerCase().replace('_', ' ')));
} }

View File

@ -5,14 +5,14 @@ import net.citizensnpcs.api.npc.NPC;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
public class RepairSession { public class ReforgeSession {
private final Blacksmith plugin; private final Blacksmith plugin;
private final Player player; private final Player player;
private final ItemStack reforge; private final ItemStack reforge;
private final NPC npc; private final NPC npc;
private int taskId; private int taskId;
public RepairSession(Player player, NPC npc) { public ReforgeSession(Player player, NPC npc) {
this.player = player; this.player = player;
reforge = player.getItemInHand(); reforge = player.getItemInHand();
this.npc = npc; this.npc = npc;