Former-commit-id: 1ec7bb723c7bf9991b264e5e58cb8b830c6ffd96 [formerly a24fe2e0d0c1253503c87fbd7eddbf435a6ffc29]
Former-commit-id: 501258aefeebc000a54861e20759ef2da5cc6fa1
This commit is contained in:
Ghost_chu committed 2019-05-28 19:09:26 +08:00
1 parent 9dfd9e2976
commit a00f9ea5ac
2 files changed
+8 -12

No files matched your search

@@ -1,5 +1,8 @@
package org.maxgamer.quickshop.Shop;
import lombok.*;
@Getter
public class ShopChunk {
private String world;
private int x;
@@ -15,18 +18,6 @@ public class ShopChunk {
// memory
}
public int getX() {
return this.x;
}
public int getZ() {
return this.z;
}
public String getWorld() {
return this.world;
}
@Override
public boolean equals(Object obj) {
if (obj.getClass() != this.getClass()) {
@@ -47,6 +47,11 @@ public class ShopManager {
return this.actions;
}
/**
* Create a shop use Shop and Info object.
* @param shop
* @param info
*/
public void createShop(Shop shop, Info info) {
ShopCreateEvent ssShopCreateEvent = new ShopCreateEvent(shop, Bukkit.getPlayer(shop.getOwner()));
Bukkit.getPluginManager().callEvent(ssShopCreateEvent);