mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Cleanup Events
Former-commit-id: 12ae60d1fc0d77ef877e178dd962aed81fe6ab24 [formerly d57ff80d7053242039cf2a07bb15327367c14383] Former-commit-id: 9b8b3d9075096cd7dab1f7279e1235a1b635be51
This commit is contained in:
1 parent
49639db419
commit
54fc623012
9 files changed
+18
No files matched your search
@@ -4,6 +4,7 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
public class ShopCreateEvent extends Event implements Cancellable {
|
||||
@@ -35,6 +36,7 @@ public class ShopCreateEvent extends Event implements Cancellable {
|
||||
return p;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -3,6 +3,7 @@ package org.maxgamer.quickshop.Event;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
public class ShopDeleteEvent extends Event implements Cancellable {
|
||||
@@ -41,6 +42,7 @@ public class ShopDeleteEvent extends Event implements Cancellable {
|
||||
return this.shop;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.DisplayItem;
|
||||
import org.maxgamer.quickshop.Shop.DisplayType;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
@@ -48,6 +49,7 @@ public class ShopDisplayItemDespawnEvent extends Event implements Cancellable {
|
||||
return iStack;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
public class ShopInventoryPreviewEvent extends Event implements Cancellable {
|
||||
|
||||
@@ -42,6 +43,7 @@ public class ShopInventoryPreviewEvent extends Event implements Cancellable {
|
||||
return p;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
/**
|
||||
* This event is called before the shop creation request is sent. E.g. A player
|
||||
@@ -40,6 +41,7 @@ public class ShopPreCreateEvent extends Event implements Cancellable {
|
||||
return p;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
public class ShopPurchaseEvent extends Event implements Cancellable {
|
||||
@@ -54,6 +55,7 @@ public class ShopPurchaseEvent extends Event implements Cancellable {
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
public class ShopSuccessPurchaseEvent extends Event implements Cancellable {
|
||||
@@ -65,6 +66,7 @@ public class ShopSuccessPurchaseEvent extends Event implements Cancellable {
|
||||
return tax;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.maxgamer.quickshop.Event;
|
||||
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
/** Getting the unloading shop, Can't cancel. **/
|
||||
@@ -18,6 +19,7 @@ public class ShopUnloadEvent extends Event {
|
||||
return shop;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
@@ -3,6 +3,7 @@ package org.maxgamer.quickshop.Event;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
public class ShopUpdateEvent extends Event implements Cancellable {
|
||||
@@ -28,6 +29,7 @@ public class ShopUpdateEvent extends Event implements Cancellable {
|
||||
return this.shop;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
Reference in new issue
Block a user