From 9086e94358e2f479e0c61f37e506be05957f47f5 Mon Sep 17 00:00:00 2001 From: Leonidius20 Date: Sun, 21 Jan 2018 15:03:22 +0200 Subject: [PATCH] Fixed player name in log --- src/main/java/ua/leonidius/trading/buy/Buy.java | 2 +- src/main/java/ua/leonidius/trading/sell/Sell.java | 4 ++-- src/main/resources/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ua/leonidius/trading/buy/Buy.java b/src/main/java/ua/leonidius/trading/buy/Buy.java index b40baf8..c18e30c 100644 --- a/src/main/java/ua/leonidius/trading/buy/Buy.java +++ b/src/main/java/ua/leonidius/trading/buy/Buy.java @@ -59,7 +59,7 @@ static void buy (Player player, Item item){ String name = ItemName.get(item); Message.BUY_YOU_BOUGHT.print(player, amount, name, id, meta, cost, Main.settings.currency); if (Main.settings.logging) { - Message.BUY_LOG.log(player, amount, name, id, meta, cost, Main.settings.currency); + Message.BUY_LOG.log(player.getName(), amount, name, id, meta, cost, Main.settings.currency); } } diff --git a/src/main/java/ua/leonidius/trading/sell/Sell.java b/src/main/java/ua/leonidius/trading/sell/Sell.java index 5c0e657..6eee025 100644 --- a/src/main/java/ua/leonidius/trading/sell/Sell.java +++ b/src/main/java/ua/leonidius/trading/sell/Sell.java @@ -36,7 +36,7 @@ static void sellFromHand (Player player, Item item, int slot){ EconomyAPI.getInstance().addMoney(player, cost); Message.SELL_YOU_SOLD.print(player, amount, name, id, meta, cost, Main.settings.currency); if (Main.settings.logging) { - Message.SELL_LOG.log(player, amount, name, id, meta, cost, Main.settings.currency); + Message.SELL_LOG.log(player.getName(), amount, name, id, meta, cost, Main.settings.currency); } } @@ -77,7 +77,7 @@ static void sellItem(Player player, Item item) { EconomyAPI.getInstance().addMoney(player, cost); Message.SELL_YOU_SOLD.print(player, amount, name, id, meta, cost, Main.settings.currency); if (Main.settings.logging) { - Message.SELL_LOG.log(player, amount, name, id, meta, cost, Main.settings.currency); + Message.SELL_LOG.log(player.getName(), amount, name, id, meta, cost, Main.settings.currency); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f56b9e1..6284d3f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Trading Commands main: ua.leonidius.trading.Main -version: 1.0.1 +version: 1.0.2 author: Leonidius20 api: ["1.0.0"] description: Shop and auction system, based on commands.