Fixed some referenced but still need to finish removing bukkit references

This commit is contained in:
Alastair 2018-01-04 14:51:40 +00:00
parent a656fce13e
commit 51e426c274
2 changed files with 23 additions and 24 deletions

View File

@ -1,16 +1,16 @@
package com.sekwah.advancedportals.core.api.events;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
* Triggered once all the portals are loaded
*
* TODO Need to make a custom event handler to be able to register against
*
* @author sekwah41
*/
public class PortalsLoadedEvent extends Event {
@Override
public class PortalsLoadedEvent/* extends Event*/ {
/*@Override
public HandlerList getHandlers() {
return null;
}
}*/
}

View File

@ -1,17 +1,16 @@
package com.sekwah.advancedportals.api.events;
package com.sekwah.advancedportals.core.api.events;
import com.sekwah.advancedportals.api.portal.Portal;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.sekwah.advancedportals.core.api.portal.Portal;
/**
* Trigered whenever a player activates the warp after the tags are handled.
*
*
* TODO Need to make a custom event handler to be able to register against or something similar like a general events data
*/
public class WarpEvent extends Event implements Cancellable {
public class WarpEvent /*extends Event implements Cancellable*/ {
private static HandlerList handlers = new HandlerList();
/*private static HandlerList handlers = new HandlerList();
private boolean cancelled = false;
@ -21,20 +20,20 @@ public class WarpEvent extends Event implements Cancellable {
private boolean hasWarped = false;
/*public WarpEvent(Player player, AdvancedPortal portalData) {
*//*public WarpEvent(Player player, AdvancedPortal portalData) {
this.player = player;
this.portalData = portalData;
}*/
}*//*
public static HandlerList getHandlerList() {
return handlers;
}
/**
*//**
* Returns if the event has been cancelled
*
* @return cancelled
*/
*//*
public boolean isCancelled() {
return cancelled;
}
@ -43,24 +42,24 @@ public class WarpEvent extends Event implements Cancellable {
cancelled = cancel;
}
/*public AdvancedPortal getPortalData() {
*//*public AdvancedPortal getPortalData() {
return portalData;
}*/
}*//*
/**
*//**
* This will return true if another plugin has warped the player(and set this to true)
*
* @return hasWarped
*/
*//*
public boolean getHasWarped() {
return hasWarped;
}
/**
*//**
* If the
*
* @param warped
*/
*//*
public void setHasWarped(boolean warped) {
this.hasWarped = warped;
}
@ -71,5 +70,5 @@ public class WarpEvent extends Event implements Cancellable {
public HandlerList getHandlers() {
return handlers;
}
}*/
}