mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
merge with fixcreatecommand branch
Former-commit-id: 68d0a25c235243932c42e835467bea14253e92aa [formerly 43abcbd322ea1736ff8c20239dbda350f08c3cba] Former-commit-id: da2868c787077e7520993755025459799ad26c12
This commit is contained in:
commit
448afc8ab9
1 file changed
+11
-9
@@ -89,21 +89,23 @@ public class SubCommand_Create implements CommandProcesser {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send creation menu.
|
||||
plugin.getShopManager().getActions().put(
|
||||
p.getUniqueId(),
|
||||
new Info(
|
||||
b.getLocation(),
|
||||
ShopAction.CREATE,
|
||||
p.getInventory().getItemInMainHand(),
|
||||
b.getRelative(p.getFacing().getOppositeFace())
|
||||
)
|
||||
);
|
||||
|
||||
if (cmdArg.length >= 1) {
|
||||
plugin.getShopManager().handleChat(p, cmdArg[0]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Send creation menu.
|
||||
final Info info = new Info(
|
||||
b.getLocation(),
|
||||
ShopAction.CREATE,
|
||||
p.getInventory().getItemInMainHand(),
|
||||
b.getRelative(p.getFacing().getOppositeFace())
|
||||
);
|
||||
|
||||
plugin.getShopManager().getActions().put(p.getUniqueId(), info);
|
||||
p.sendMessage(
|
||||
MsgUtil.getMessage("how-much-to-trade-for", sender, Util.getItemStackName(item)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user