Rename ShopHandlerImpl
This commit is contained in:
parent
062d898575
commit
efebd4422c
|
|
@ -1,7 +1,8 @@
|
||||||
package com.alttd.playershops;
|
package com.alttd.playershops;
|
||||||
|
|
||||||
|
import com.alttd.playershops.api.ShopHandler;
|
||||||
import com.alttd.playershops.config.Config;
|
import com.alttd.playershops.config.Config;
|
||||||
import com.alttd.playershops.handler.ShopHandler;
|
import com.alttd.playershops.handler.ShopHandlerImpl;
|
||||||
import com.alttd.playershops.listener.PlayerListener;
|
import com.alttd.playershops.listener.PlayerListener;
|
||||||
import com.alttd.playershops.listener.ShopListener;
|
import com.alttd.playershops.listener.ShopListener;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -35,7 +36,7 @@ public class PlayerShops extends JavaPlugin {
|
||||||
registerListeners();
|
registerListeners();
|
||||||
registerCommands();
|
registerCommands();
|
||||||
|
|
||||||
shopHandler = new ShopHandler(instance);
|
shopHandler = new ShopHandlerImpl(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean setupEconomy() {
|
private boolean setupEconomy() {
|
||||||
|
|
@ -56,10 +57,8 @@ public class PlayerShops extends JavaPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerListeners() {
|
private void registerListeners() {
|
||||||
shopListener = new ShopListener();
|
shopListener = new ShopListener(this);
|
||||||
shopListener.register(this);
|
playerListener = new PlayerListener(this);
|
||||||
playerListener = new PlayerListener();
|
|
||||||
playerListener.register(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UnregisterListeners() {
|
private void UnregisterListeners() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.alttd.playershops.handler;
|
package com.alttd.playershops.handler;
|
||||||
|
|
||||||
import com.alttd.playershops.PlayerShops;
|
import com.alttd.playershops.PlayerShops;
|
||||||
|
import com.alttd.playershops.api.ShopHandler;
|
||||||
import com.alttd.playershops.config.Config;
|
import com.alttd.playershops.config.Config;
|
||||||
import com.alttd.playershops.shop.AbstractShop;
|
import com.alttd.playershops.shop.AbstractShop;
|
||||||
import it.unimi.dsi.fastutil.objects.Object2IntMap;
|
import it.unimi.dsi.fastutil.objects.Object2IntMap;
|
||||||
|
|
@ -15,7 +16,7 @@ import org.bukkit.block.BlockFace;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
public class ShopHandler implements com.alttd.playershops.api.ShopHandler {
|
public class ShopHandlerImpl implements ShopHandler {
|
||||||
|
|
||||||
private final PlayerShops plugin;
|
private final PlayerShops plugin;
|
||||||
@Getter
|
@Getter
|
||||||
|
|
@ -25,7 +26,7 @@ public class ShopHandler implements com.alttd.playershops.api.ShopHandler {
|
||||||
@Getter
|
@Getter
|
||||||
private final ArrayList<Material> shopMaterials;
|
private final ArrayList<Material> shopMaterials;
|
||||||
|
|
||||||
public ShopHandler(PlayerShops instance) {
|
public ShopHandlerImpl(PlayerShops instance) {
|
||||||
plugin = instance;
|
plugin = instance;
|
||||||
shopLocation = new ConcurrentHashMap<>();
|
shopLocation = new ConcurrentHashMap<>();
|
||||||
shopBuildLimits = new Object2IntOpenHashMap<>();
|
shopBuildLimits = new Object2IntOpenHashMap<>();
|
||||||
Loading…
Reference in New Issue
Block a user