Actually finished removing bukkit references now

This commit is contained in:
Alastair 2018-01-05 21:14:15 +00:00 committed by Sekwah
parent aff9450a0e
commit 4b2acf3f20
5 changed files with 17 additions and 9 deletions

View File

@ -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)

View File

@ -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) {
}

View File

@ -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();

View File

@ -0,0 +1,4 @@
package com.sekwah.advancedportals.core.data;
public class PortalLocation {
}

View File

@ -0,0 +1,4 @@
package com.sekwah.advancedportals.coreconnector.container;
public class CommandSenderContainer {
}