Adds tons of changes to messages
This commit is contained in:
		@@ -17,6 +17,8 @@ import java.util.Objects;
 | 
			
		||||
import java.util.Random;
 | 
			
		||||
import java.util.logging.Level;
 | 
			
		||||
 | 
			
		||||
import static net.knarcraft.blacksmith.util.MessageFormatter.sendNPCMessage;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * A representation of the session between a player and a blacksmith
 | 
			
		||||
 */
 | 
			
		||||
@@ -57,7 +59,7 @@ public class ReforgeSession implements Runnable {
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public void run() {
 | 
			
		||||
        player.sendMessage(reforgeItem() ? config.getSuccessMessage() : config.getFailMessage());
 | 
			
		||||
        sendNPCMessage(this.npc, player, reforgeItem() ? config.getSuccessMessage() : config.getFailMessage());
 | 
			
		||||
 | 
			
		||||
        //Stop the re-forged item from displaying in the blacksmith's hand
 | 
			
		||||
        if (npc.getEntity() instanceof Player) {
 | 
			
		||||
@@ -191,12 +193,12 @@ public class ReforgeSession implements Runnable {
 | 
			
		||||
        // Prevent player from switching items during session
 | 
			
		||||
        ItemStack itemInHand = player.getInventory().getItemInMainHand();
 | 
			
		||||
        if (!itemToReforge.equals(itemInHand)) {
 | 
			
		||||
            player.sendMessage(config.getItemChangedMessage());
 | 
			
		||||
            sendNPCMessage(this.npc, player, config.getItemChangedMessage());
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        // The player is unable to pay
 | 
			
		||||
        if (!EconomyManager.canPay(player)) {
 | 
			
		||||
            player.sendMessage(config.getInsufficientFundsMessage());
 | 
			
		||||
            sendNPCMessage(this.npc, player, config.getInsufficientFundsMessage());
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        return false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user