Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Fixed player name in log
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidius20 committed Jan 21, 2018
1 parent 2fca1a0 commit 9086e94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ua/leonidius/trading/buy/Buy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ua/leonidius/trading/sell/Sell.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 9086e94

Please sign in to comment.