Changed a bit of architecture

This commit is contained in:
alisolarflare 2016-11-24 22:12:09 -05:00
parent 6d0ee4e224
commit 173c0d5a70
50 changed files with 74 additions and 82 deletions

View file

@ -1,4 +1,4 @@
package alisolarflare.components;
package alisolarflare.architecture;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.event.Listener;

View file

@ -1,4 +1,4 @@
package alisolarflare.components;
package alisolarflare.architecture.commands;
import buttondevteam.lib.chat.TBMCCommandBase;

View file

@ -1,4 +1,4 @@
package alisolarflare.components;
package alisolarflare.architecture.commands;
public abstract class ModCommand extends PlayerCommand{

View file

@ -1,4 +1,4 @@
package alisolarflare.components;
package alisolarflare.architecture.commands;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

View file

@ -7,7 +7,7 @@ import java.util.Map;
import org.bukkit.Server;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.alilinks.commands.PressAliLink;
import alisolarflare.components.alilinks.commands.SetAliLink;
import alisolarflare.components.alilinks.entities.Link;

View file

@ -5,7 +5,7 @@ import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.alilinks.entities.Link;
public class PressAliLink extends PlayerCommand {

View file

@ -8,7 +8,7 @@ import org.bukkit.World;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.alilinks.entities.Link;
public class SetAliLink extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.bankchest;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
public class BankChestComponent extends Component {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.bankchest;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class CreateBankChest extends ModCommand {

View file

@ -6,7 +6,7 @@ import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.creativeboundaries.commands.Cbgm0;
import alisolarflare.components.creativeboundaries.commands.Cbgm1;
import alisolarflare.components.creativeboundaries.commands.SetDickmode;

View file

@ -5,7 +5,7 @@ import java.util.List;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
public class Cbgm0 extends PlayerCommand{

View file

@ -11,7 +11,7 @@ import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock;
import com.palmergames.bukkit.towny.object.TownyUniverse;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
public class Cbgm1 extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.creativeboundaries.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
public class SetDickmode extends ModCommand{

View file

@ -3,7 +3,7 @@ package alisolarflare.components.easyuhc;
import org.bukkit.Location;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.easyuhc.commands.ActivatePowers;
import alisolarflare.components.easyuhc.commands.SetUHCLobby;
import alisolarflare.components.easyuhc.commands.SetWorldBorders;

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class ActivatePowers extends ModCommand{

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.easyuhc.EasyUHCComponent;
public class SetUHCLobby extends ModCommand{

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class SetWorldBorders extends ModCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class ShrinkWorldBorders extends ModCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class SpreadPlayers extends ModCommand{

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class StartTimer extends ModCommand{

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
public class StartUHC extends ModCommand{

View file

@ -2,7 +2,7 @@ package alisolarflare.components.easyuhc.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
public class TeleportToUHC extends PlayerCommand{

View file

@ -7,11 +7,11 @@ import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.components.flairdoor.commands.FlairMe;
import alisolarflare.components.flairdoor.commands.SetProximityLocation;
import alisolarflare.components.flairdoor.listeners.PlayerProximityTaskLauncher;
import alisolarflare.architecture.Component;
import alisolarflare.components.flairdoor.flairme.FlairMe;
import alisolarflare.components.flairdoor.listeners.PortalListener;
import alisolarflare.components.flairdoor.playerproximity.PlayerProximityTaskLauncher;
import alisolarflare.components.flairdoor.playerproximity.SetProximityLocation;
public class FlairDoorComponent extends Component {
public List<Player> playersToBeFlaired = new ArrayList<Player>();

View file

@ -1,8 +1,8 @@
package alisolarflare.components.flairdoor.commands;
package alisolarflare.components.flairdoor.flairme;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.flairdoor.FlairDoorComponent;
public class FlairMe extends PlayerCommand {

View file

@ -1,4 +1,4 @@
package alisolarflare.components.flairdoor.listeners;
package alisolarflare.components.flairdoor.playerproximity;
import org.bukkit.Location;
import org.bukkit.entity.Player;

View file

@ -1,4 +1,4 @@
package alisolarflare.components.flairdoor.listeners;
package alisolarflare.components.flairdoor.playerproximity;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;

View file

@ -1,8 +1,8 @@
package alisolarflare.components.flairdoor.commands;
package alisolarflare.components.flairdoor.playerproximity;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.flairdoor.FlairDoorComponent;
public class SetProximityLocation extends ModCommand{

View file

@ -2,11 +2,11 @@ package alisolarflare.components.gpowers;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.gpowers.commands.GPower;
import alisolarflare.components.gpowers.commands.PowerDown;
import alisolarflare.components.gpowers.commands.PowerUp;
import alisolarflare.components.gpowers.listeners.gPowerListener;
import alisolarflare.components.gpowers.enchant.Enchanter;
import alisolarflare.components.gpowers.powerstate.PowerDown;
import alisolarflare.components.gpowers.powerstate.PowerUp;
public class GPowerComponent extends Component {
@ -17,7 +17,7 @@ public class GPowerComponent extends Component {
registerCommand(plugin, new PowerUp(gPowerMemory));
registerCommand(plugin, new PowerDown(gPowerMemory));
registerListener(plugin, new gPowerListener(plugin, gPowerMemory));
registerListener(plugin, new Enchanter(plugin, gPowerMemory));
}

View file

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

View file

@ -1,4 +1,4 @@
package alisolarflare.components.gpowers.listeners;
package alisolarflare.components.gpowers.enchant;
import java.util.Map;
import java.util.UUID;
@ -6,21 +6,26 @@ import java.util.UUID;
import org.bukkit.Color;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitRunnable;
import alisolarflare.components.gpowers.GPowerMemory;
import alisolarflare.components.gpowers.GPowerMemory.poweredPlayer;
public class gPowerApplyingTask extends BukkitRunnable{
public class Enchanter extends BukkitRunnable implements Listener{
private int powerLength = 300;
private Server server;
private Map<UUID, poweredPlayer> poweredPlayerList;
public gPowerApplyingTask(Server server, Map<UUID, poweredPlayer> poweredPlayerList) {
this.server = server;
this.poweredPlayerList = poweredPlayerList;
}
public Enchanter(JavaPlugin plugin, GPowerMemory gPowerMemory){
this.server = plugin.getServer();
this.poweredPlayerList = gPowerMemory.poweredPlayerList;
this.runTaskTimer(plugin, 0, 190);
}
//REPEATS EVERY 5 SECONDS
@Override

View file

@ -1,13 +0,0 @@
package alisolarflare.components.gpowers.listeners;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.gpowers.GPowerMemory;
public class gPowerListener implements Listener{
public gPowerListener(JavaPlugin plugin, GPowerMemory gPowerMemory){
new gPowerApplyingTask(plugin.getServer(), gPowerMemory.poweredPlayerList).runTaskTimer(plugin, 0, 190);
}
}

View file

@ -1,8 +1,8 @@
package alisolarflare.components.gpowers.commands;
package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.gpowers.GPowerMemory;
import alisolarflare.components.gpowers.GPowerMemory.poweredPlayer;

View file

@ -1,8 +1,8 @@
package alisolarflare.components.gpowers.commands;
package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.gpowers.GPowerMemory;
public class PowerDown extends PlayerCommand {

View file

@ -1,8 +1,8 @@
package alisolarflare.components.gpowers.commands;
package alisolarflare.components.gpowers.powerstate;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.gpowers.GPowerMemory;
public class PowerUp extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.insurance;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
public class InsuranceComponent extends Component {

View file

@ -3,7 +3,7 @@ package alisolarflare.components.insurance;
import org.apache.commons.lang.StringUtils;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.insurance.Insurance.InsuranceType;
public class getInsurance extends ModCommand {

View file

@ -3,7 +3,7 @@ package alisolarflare.components.insurance;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.insurance.Insurance.InsuranceType;
public class getInsuranceBar extends ModCommand {

View file

@ -3,7 +3,7 @@ package alisolarflare.components.insurance;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.insurance.Insurance.InsuranceType;
public class getInsuranceBlock extends ModCommand {

View file

@ -3,7 +3,7 @@ package alisolarflare.components.insurance;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.insurance.Insurance.InsuranceType;
public class getInsuranceNugget extends ModCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.magic;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.magic.tricks.AliArrowListener;
import alisolarflare.components.magic.tricks.BoomBowDeathListener;
import alisolarflare.components.magic.tricks.BoomBowListener;

View file

@ -2,7 +2,7 @@ package alisolarflare.components.magic.tricks;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
//HEHEHHEHEH EAASSSTER EGGS
public class BoomBowRule extends ModCommand{
public static boolean boomDecay;

View file

@ -11,9 +11,9 @@ import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.components.metrics.commands.GetLoginMetrics;
import alisolarflare.components.metrics.listeners.PlayerJoinListener;
import alisolarflare.architecture.Component;
import alisolarflare.components.metrics.collection.PlayerJoinListener;
import alisolarflare.components.metrics.output.GetLoginMetrics;
import buttondevteam.lib.TBMCCoreAPI;
public class MetricsComponent extends Component{

View file

@ -1,4 +1,4 @@
package alisolarflare.components.metrics.listeners;
package alisolarflare.components.metrics.collection;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

View file

@ -1,8 +1,8 @@
package alisolarflare.components.metrics.commands;
package alisolarflare.components.metrics.output;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.metrics.MetricsComponent;
public class GetLoginMetrics extends ModCommand{

View file

@ -4,7 +4,7 @@ import java.util.List;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import alisolarflare.components.minigames.commands.JoinMinigame;
import alisolarflare.components.minigames.commands.LeaveMinigame;
import alisolarflare.components.minigames.commands.ListFighters;

View file

@ -2,7 +2,7 @@ package alisolarflare.components.minigames.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.minigames.MinigameComponent;
public class JoinMinigame extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.minigames.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.minigames.MinigameComponent;
public class LeaveMinigame extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.minigames.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.PlayerCommand;
import alisolarflare.architecture.commands.PlayerCommand;
import alisolarflare.components.minigames.MinigameComponent;
public class ListFighters extends PlayerCommand {

View file

@ -2,7 +2,7 @@ package alisolarflare.components.minigames.commands;
import org.bukkit.entity.Player;
import alisolarflare.components.ModCommand;
import alisolarflare.architecture.commands.ModCommand;
import alisolarflare.components.minigames.data.SpawnSet;
public class SetColourSpawn extends ModCommand{

View file

@ -2,7 +2,7 @@ package graveyard.shulker;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.architecture.Component;
import graveyard.shulker.commands.AliShulker;
/**@deprecated*/