Skip to content

Instantly share code, notes, and snippets.

@brcdev
Last active October 19, 2017 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brcdev/3018fa77c0758a02d85f5bf5cc79dda8 to your computer and use it in GitHub Desktop.
Save brcdev/3018fa77c0758a02d85f5bf5cc79dda8 to your computer and use it in GitHub Desktop.
package net.brcdev.shopgui.api.event;
import net.brcdev.shopgui.api.ShopTransactionResult;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ShopPostTransactionEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final ShopTransactionResult result;
public ShopPostTransactionEvent(ShopTransactionResult result) {
this.result = result;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public ShopTransactionResult getResult() {
return result;
}
}
@kangarko
Copy link

I am sorry @brcdev, but you lack

public static HandlerList getHandlerList() {
	return handlers;
}

method, and that causes issues when I attempt to integrate your plugin.

@brcdev
Copy link
Author

brcdev commented Oct 19, 2017

@kangarko it's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment