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

Commit

Permalink
Fix #320
Browse files Browse the repository at this point in the history
Former-commit-id: e177811
  • Loading branch information
Ghost-chu committed Jan 30, 2020
1 parent 81d9d91 commit 7fc879f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.maxgamer</groupId>
<artifactId>QuickShop</artifactId>
<version>3.1.3.4</version>
<version>3.1.3.5</version>

<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ShopDisplayItemDespawnEvent(
*/
@Deprecated
public ShopDisplayItemDespawnEvent(@NotNull Shop shop, @NotNull ItemStack itemStack) {
this(shop, itemStack, DisplayType.fromID(QuickShop.instance.getConfig().getInt("shop.display-type")));
this(shop, itemStack, DisplayItem.getNowUsing());
}

@Override
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.maxgamer.quickshop.Util;

import com.bekvon.bukkit.residence.commands.message;
import com.bekvon.bukkit.residence.commands.shop;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
Expand Down Expand Up @@ -151,15 +153,11 @@ public static boolean flush(@NotNull OfflinePlayer p) {
} catch (ArrayIndexOutOfBoundsException e2) {
p.getPlayer().sendMessage(msg);
}
plugin.getDatabaseHelper().cleanMessageForPlayer(pName);
msgs.clear();
return true;
} else {
return false;
}
}
}
plugin.getDatabaseHelper().cleanMessageForPlayer(pName);
msgs.clear();
return true;
}
}
return false;
Expand Down

0 comments on commit 7fc879f

Please sign in to comment.