Started GPowerAPI
This commit is contained in:
parent
7d73a18d17
commit
850169533a
7 changed files with 9 additions and 7 deletions
|
@ -60,7 +60,7 @@ public class AliLinkAPI {
|
||||||
linkList.add(link);
|
linkList.add(link);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "unused" })
|
||||||
private List<Link> MapToLinkList(List<Map<?, ?>> mapList, Server server) {
|
private List<Link> MapToLinkList(List<Map<?, ?>> mapList, Server server) {
|
||||||
List<Link> linkList = new ArrayList<Link>();
|
List<Link> linkList = new ArrayList<Link>();
|
||||||
for (Map<?, ?> MapWithLinkData : mapList){
|
for (Map<?, ?> MapWithLinkData : mapList){
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package alisolarflare.components.gpowers;
|
package alisolarflare.components.gpowers.api;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -9,6 +9,8 @@ import org.bukkit.entity.Player;
|
||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
|
import alisolarflare.components.gpowers.PoweredPlayer;
|
||||||
|
|
||||||
public class GPowerAPI{
|
public class GPowerAPI{
|
||||||
public static final int defaultPowerLength = 300;
|
public static final int defaultPowerLength = 300;
|
||||||
public static Map<UUID, PoweredPlayer> poweredPlayerList = new HashMap<UUID, PoweredPlayer>();
|
public static Map<UUID, PoweredPlayer> poweredPlayerList = new HashMap<UUID, PoweredPlayer>();
|
|
@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.commands;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import alisolarflare.architecture.commands.PlayerCommand;
|
import alisolarflare.architecture.commands.PlayerCommand;
|
||||||
import alisolarflare.components.gpowers.GPowerAPI;
|
import alisolarflare.components.gpowers.api.GPowerAPI;
|
||||||
|
|
||||||
public class GPower extends PlayerCommand {
|
public class GPower extends PlayerCommand {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -6,7 +6,7 @@ import org.bukkit.event.Listener;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
import alisolarflare.components.gpowers.GPowerAPI;
|
import alisolarflare.components.gpowers.api.GPowerAPI;
|
||||||
|
|
||||||
public class EnchantingLoop extends BukkitRunnable implements Listener{
|
public class EnchantingLoop extends BukkitRunnable implements Listener{
|
||||||
private Server server;
|
private Server server;
|
||||||
|
|
|
@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import alisolarflare.architecture.commands.ModCommand;
|
import alisolarflare.architecture.commands.ModCommand;
|
||||||
import alisolarflare.components.gpowers.GPowerAPI;
|
import alisolarflare.components.gpowers.api.GPowerAPI;
|
||||||
|
|
||||||
public class PowerAll extends ModCommand{
|
public class PowerAll extends ModCommand{
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import alisolarflare.architecture.commands.PlayerCommand;
|
import alisolarflare.architecture.commands.PlayerCommand;
|
||||||
import alisolarflare.components.gpowers.GPowerAPI;
|
import alisolarflare.components.gpowers.api.GPowerAPI;
|
||||||
|
|
||||||
public class PowerDown extends PlayerCommand {
|
public class PowerDown extends PlayerCommand {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -3,7 +3,7 @@ package alisolarflare.components.gpowers.powerstate;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import alisolarflare.architecture.commands.PlayerCommand;
|
import alisolarflare.architecture.commands.PlayerCommand;
|
||||||
import alisolarflare.components.gpowers.GPowerAPI;
|
import alisolarflare.components.gpowers.api.GPowerAPI;
|
||||||
|
|
||||||
public class PowerUp extends PlayerCommand {
|
public class PowerUp extends PlayerCommand {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue