Skip to content

Commit

Permalink
Get the session by entity, not by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Sep 22, 2018
1 parent 96c9b69 commit 7a8551d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/diddiz/LogBlock/CommandsHandler.java
Expand Up @@ -145,7 +145,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
if (logblock.hasPermission(sender, "logblock.tools." + tool.name)) {
if (sender instanceof Player) {
final Player player = (Player) sender;
final Session session = Session.getSession(player.getName());
final Session session = Session.getSession(player);
final ToolData toolData = session.toolData.get(tool);
if (args.length == 1) {
if (logblock.hasPermission(player, "logblock.spawnTools")) {
Expand Down

0 comments on commit 7a8551d

Please sign in to comment.