Started moving code around

This commit is contained in:
Alastair 2016-07-24 23:14:32 +01:00
parent 06794ac4a7
commit 6fa6175856
5 changed files with 4 additions and 14 deletions

View File

@ -1,6 +1,6 @@
main: com.sekwah.advancedportals.AdvancedPortalsPlugin
name: AdvancedPortals
version: 0.0.19
version: 0.0.20
author: sekwah41
description: An advanced portals plugin for bukkit.
commands:

View File

@ -1,4 +1,4 @@
package com.sekwah.advancedportals.portals;
package com.sekwah.advancedportals.api;
public class PortalArg {

View File

@ -1,4 +1,4 @@
package com.sekwah.advancedportals.portals;
package com.sekwah.advancedportals.api;
import java.util.ArrayList;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.sekwah.advancedportals.events;
package com.sekwah.advancedportals.api.events;
import com.sekwah.advancedportals.portals.AdvancedPortal;
import org.bukkit.entity.Player;
@ -12,8 +12,6 @@ public final class WarpEvent extends Event implements Cancellable {
* Use listeners so you can add new triggers easier and also other plugins can listen for the event
* and add their own triggers
*/
private static final HandlerList handlers = new HandlerList();
private boolean cancelled = false;

View File

@ -1,16 +1,12 @@
package com.sekwah.advancedportals.listeners;
import com.avaje.ebeaninternal.server.transaction.RemoteTransactionEvent;
import com.google.common.base.Optional;
import com.sekwah.advancedportals.AdvancedPortalsPlugin;
import com.sekwah.advancedportals.ConfigAccessor;
import com.sekwah.advancedportals.events.WarpEvent;
import com.sekwah.advancedportals.portals.AdvancedPortal;
import com.sekwah.advancedportals.portals.Portal;
import com.sun.org.apache.regexp.internal.RE;
import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
@ -22,12 +18,8 @@ import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.player.PlayerPortalEvent;
import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.world.ChunkUnloadEvent;
import org.bukkit.metadata.FixedMetadataValue;
import java.lang.reflect.Field;
import java.util.HashMap;
public class Listeners implements Listener {
// The needed config values will be stored so they are easier to access later