mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-25 20:15:58 +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;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import com.sekwah.advancedportals.coreconnector.container.CommandSenderContainer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -16,7 +16,7 @@ public interface SubCommand {
|
||||
* @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)
|
||||
*/
|
||||
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.
|
||||
* @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)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.sekwah.advancedportals.core.api.effect;
|
||||
|
||||
import com.sekwah.advancedportals.core.api.portal.Portal;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import com.sekwah.advancedportals.core.data.PortalLocation;
|
||||
import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
|
||||
|
||||
/**
|
||||
* @author sekwah41
|
||||
@ -10,7 +10,7 @@ import org.bukkit.entity.Player;
|
||||
public class TestEffect implements WarpEffect {
|
||||
|
||||
@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;
|
||||
|
||||
import com.sekwah.advancedportals.core.api.portal.Portal;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import com.sekwah.advancedportals.core.data.PortalLocation;
|
||||
import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
|
||||
|
||||
/**
|
||||
* Effects to be registered to the list.
|
||||
@ -15,7 +15,7 @@ import org.bukkit.entity.Player;
|
||||
*/
|
||||
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();
|
||||
|
||||
|
@ -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