rework some stuff
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -9,7 +9,7 @@ public class PlayerCreateShopEvent extends ShopEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Player player;
|
||||
|
||||
public PlayerCreateShopEvent(Player player, AbstractShop shop) {
|
||||
public PlayerCreateShopEvent(Player player, PlayerShop shop) {
|
||||
super(shop);
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -10,7 +10,7 @@ public class PlayerDestroyShopEvent extends ShopEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Player player;
|
||||
|
||||
public PlayerDestroyShopEvent(Player player, AbstractShop shop) {
|
||||
public PlayerDestroyShopEvent(Player player, PlayerShop shop) {
|
||||
super(shop);
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -10,7 +10,7 @@ public class PlayerExchangeShopEvent extends ShopEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Player player;
|
||||
|
||||
public PlayerExchangeShopEvent(Player player, AbstractShop shop) {
|
||||
public PlayerExchangeShopEvent(Player player, PlayerShop shop) {
|
||||
super(shop);
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -10,7 +10,7 @@ public class PlayerInitializeShopEvent extends ShopEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Player player;
|
||||
|
||||
public PlayerInitializeShopEvent(Player player, AbstractShop shop) {
|
||||
public PlayerInitializeShopEvent(Player player, PlayerShop shop) {
|
||||
super(shop);
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -8,7 +8,7 @@ public class ShopBalanceChangeEvent extends ShopEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final ChangeReason changeReason;
|
||||
|
||||
public ShopBalanceChangeEvent(AbstractShop shop, ChangeReason reason) {
|
||||
public ShopBalanceChangeEvent(PlayerShop shop, ChangeReason reason) {
|
||||
super(shop);
|
||||
this.changeReason = reason;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
package com.alttd.playershops.events;
|
||||
|
||||
import com.alttd.playershops.shop.AbstractShop;
|
||||
import com.alttd.playershops.shop.PlayerShop;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
public abstract class ShopEvent extends Event implements Cancellable {
|
||||
|
||||
private boolean cancelled;
|
||||
private final AbstractShop shop;
|
||||
private final PlayerShop shop;
|
||||
|
||||
public ShopEvent(AbstractShop shop) {
|
||||
public ShopEvent(PlayerShop shop) {
|
||||
this.shop = shop;
|
||||
}
|
||||
|
||||
public AbstractShop getShop() {
|
||||
public PlayerShop getShop() {
|
||||
return shop;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user