mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-18 05:11:24 +01:00
Actually finished removing bukkit references now
This commit is contained in:
parent
aff9450a0e
commit
4b2acf3f20
@ -1,6 +1,6 @@
|
|||||||
package com.sekwah.advancedportals.core.api.commands;
|
package com.sekwah.advancedportals.core.api.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import com.sekwah.advancedportals.coreconnector.container.CommandSenderContainer;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ public interface SubCommand {
|
|||||||
* @param args arguments including the subcommand that has been specified.
|
* @param args arguments including the subcommand that has been specified.
|
||||||
* @return if the command has worked (if false it will just display a message from the command suggesting to check help)
|
* @return if the command has worked (if false it will just display a message from the command suggesting to check help)
|
||||||
*/
|
*/
|
||||||
boolean onCommand(CommandSender sender, String[] args);
|
boolean onCommand(CommandSenderContainer sender, String[] args);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -25,7 +25,7 @@ public interface SubCommand {
|
|||||||
* @param args arguments including the subcommand that has been specified.
|
* @param args arguments including the subcommand that has been specified.
|
||||||
* @return tab completion for the subcommand
|
* @return tab completion for the subcommand
|
||||||
*/
|
*/
|
||||||
List<String> onTabComplete(CommandSender sender, String[] args);
|
List<String> onTabComplete(CommandSenderContainer sender, String[] args);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the string to show on the above help menu. (describing the subcommand)
|
* @return the string to show on the above help menu. (describing the subcommand)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.sekwah.advancedportals.core.api.effect;
|
package com.sekwah.advancedportals.core.api.effect;
|
||||||
|
|
||||||
import com.sekwah.advancedportals.core.api.portal.Portal;
|
import com.sekwah.advancedportals.core.api.portal.Portal;
|
||||||
import org.bukkit.Location;
|
import com.sekwah.advancedportals.core.data.PortalLocation;
|
||||||
import org.bukkit.entity.Player;
|
import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author sekwah41
|
* @author sekwah41
|
||||||
@ -10,7 +10,7 @@ import org.bukkit.entity.Player;
|
|||||||
public class TestEffect implements WarpEffect {
|
public class TestEffect implements WarpEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onWarp(Player player, Location loc, Action action, Portal portal) {
|
public void onWarp(PlayerContainer player, PortalLocation loc, Action action, Portal portal) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.sekwah.advancedportals.core.api.effect;
|
package com.sekwah.advancedportals.core.api.effect;
|
||||||
|
|
||||||
import com.sekwah.advancedportals.core.api.portal.Portal;
|
import com.sekwah.advancedportals.core.api.portal.Portal;
|
||||||
import org.bukkit.Location;
|
import com.sekwah.advancedportals.core.data.PortalLocation;
|
||||||
import org.bukkit.entity.Player;
|
import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Effects to be registered to the list.
|
* Effects to be registered to the list.
|
||||||
@ -15,7 +15,7 @@ import org.bukkit.entity.Player;
|
|||||||
*/
|
*/
|
||||||
public interface WarpEffect {
|
public interface WarpEffect {
|
||||||
|
|
||||||
void onWarp(Player player, Location loc, Action action, Portal portal);
|
void onWarp(PlayerContainer player, PortalLocation loc, Action action, Portal portal);
|
||||||
|
|
||||||
Type getType();
|
Type getType();
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.sekwah.advancedportals.core.data;
|
||||||
|
|
||||||
|
public class PortalLocation {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.sekwah.advancedportals.coreconnector.container;
|
||||||
|
|
||||||
|
public class CommandSenderContainer {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user