Started GPowerAPI

This commit is contained in:
alisolarflare 2016-12-01 16:09:39 -05:00
parent 7d73a18d17
commit 850169533a
7 changed files with 9 additions and 7 deletions

View file

@ -60,7 +60,7 @@ public class AliLinkAPI {
linkList.add(link);
return true;
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "unused" })
private List<Link> MapToLinkList(List<Map<?, ?>> mapList, Server server) {
List<Link> linkList = new ArrayList<Link>();
for (Map<?, ?> MapWithLinkData : mapList){

View file

@ -1,4 +1,4 @@
package alisolarflare.components.gpowers;
package alisolarflare.components.gpowers.api;
import java.util.HashMap;
import java.util.Map;
@ -9,6 +9,8 @@ import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import alisolarflare.components.gpowers.PoweredPlayer;
public class GPowerAPI{
public static final int defaultPowerLength = 300;
public static Map<UUID, PoweredPlayer> poweredPlayerList = new HashMap<UUID, PoweredPlayer>();

View file

@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.commands;
import org.bukkit.entity.Player;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.gpowers.GPowerAPI;
import alisolarflare.components.gpowers.api.GPowerAPI;
public class GPower extends PlayerCommand {
@Override

View file

@ -6,7 +6,7 @@ import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import alisolarflare.components.gpowers.GPowerAPI;
import alisolarflare.components.gpowers.api.GPowerAPI;
public class EnchantingLoop extends BukkitRunnable implements Listener{
private Server server;

View file

@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.gpowers.GPowerAPI;
import alisolarflare.components.gpowers.api.GPowerAPI;
public class PowerAll extends ModCommand{
@Override

View file

@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.gpowers.GPowerAPI;
import alisolarflare.components.gpowers.api.GPowerAPI;
public class PowerDown extends PlayerCommand {
@Override

View file

@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.gpowers.GPowerAPI;
import alisolarflare.components.gpowers.api.GPowerAPI;
public class PowerUp extends PlayerCommand {
@Override