gpower fix

This commit is contained in:
alisolarflare 2016-11-03 17:32:08 -04:00
parent 2baeb7c065
commit cb02693c0f
9 changed files with 37 additions and 32 deletions

View file

@ -3,17 +3,13 @@ name: AliPresents
version: 2.0.1 version: 2.0.1
commands: commands:
alishulker:
description: Spawns a shulker at player location Alishulker health withereffect invisibility true experiencedrops
pressalilink: pressalilink:
description: Presses an Ali Link pressalilink frequency description: Presses an Ali Link pressalilink frequency
setalilink: setalilink:
description: Creates an Ali Link setalilink frequency description: Creates an Ali Link setalilink frequency
setflairdoorcolour:
description: Sets the flair door colour mode, when lighting portals
flairme: flairme:
description: Activates the Flair Me Command. Ask Ali, she was fucking tired when writing this description description: Activates the Flair Me Command. Ask Ali, she was fucking tired when writing this description
gpowercommand: gpower:
description: Testing command for ghostie powers description: Testing command for ghostie powers
powerup: powerup:
description: Official g-power command that activates the ghostie powerups description: Official g-power command that activates the ghostie powerups

View file

@ -9,7 +9,6 @@ import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.flairdoor.FlairDoorModule; import alisolarflare.components.flairdoor.FlairDoorModule;
import alisolarflare.components.gpowers.GPowerModule; import alisolarflare.components.gpowers.GPowerModule;
import alisolarflare.components.links.AliLinkModule; import alisolarflare.components.links.AliLinkModule;
import alisolarflare.components.shulker.AliShulkerModule;
import alisolarflare.events.uhc.UHCModule; import alisolarflare.events.uhc.UHCModule;
import alisolarflare.magic.MagicModule; import alisolarflare.magic.MagicModule;
import alisolarflare.minigames.freeforall.FreeForAllModule; import alisolarflare.minigames.freeforall.FreeForAllModule;
@ -18,28 +17,21 @@ import alisolarflare.minigames.lobby.LobbyModule;
public class AliPresents extends JavaPlugin{ public class AliPresents extends JavaPlugin{
public void onEnable(){ public void onEnable(){
PluginDescriptionFile pdfFile = getDescription(); PluginDescriptionFile pdfFile = getDescription();
Logger logger = getLogger(); Logger logger = getLogger();
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ")."); logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ").");
registerModules(); new FlairDoorModule().register(this);
new GPowerModule().register(this);
new AliLinkModule().register(this);
new UHCModule().register(this);
new MagicModule().register(this);
new FreeForAllModule().register(this);
new LobbyModule().register(this);
logger.info(pdfFile.getName() + " has fully registered (V." + pdfFile.getVersion()+ ")."); logger.info(pdfFile.getName() + " has fully registered (V." + pdfFile.getVersion()+ ").");
} }
public void registerModules(){
new FlairDoorModule().register(this);
new GPowerModule().register(this);
new AliLinkModule().register(this);
new AliShulkerModule().register(this);
new UHCModule().register(this);
new MagicModule().register(this);
new FreeForAllModule().register(this);
new LobbyModule().register(this);
}
} }

View file

@ -7,6 +7,11 @@ import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.chat.TBMCCommandBase;
/**
* @deprecated
* @author Alisolarflare
*
*/
public class SetFlairDoorColour extends TBMCCommandBase { public class SetFlairDoorColour extends TBMCCommandBase {
public static String FlairDoorColorMode = "null"; public static String FlairDoorColorMode = "null";
public static final List<String> COLOURMODES = Arrays.asList("red", "orange", "yellow", "green", "blue", "purple", public static final List<String> COLOURMODES = Arrays.asList("red", "orange", "yellow", "green", "blue", "purple",

View file

@ -3,14 +3,14 @@ package alisolarflare.components.gpowers;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.Module; import alisolarflare.Module;
import alisolarflare.components.gpowers.commands.gPowerCommand; import alisolarflare.components.gpowers.commands.GPower;
import alisolarflare.components.gpowers.listeners.gPowerListener; import alisolarflare.components.gpowers.listeners.gPowerListener;
public class GPowerModule extends Module { public class GPowerModule extends Module {
@Override @Override
public void register(JavaPlugin plugin) { public void register(JavaPlugin plugin) {
registerCommand(plugin, new gPowerCommand()); registerCommand(plugin, new GPower());
registerListener(plugin, new gPowerListener(plugin)); registerListener(plugin, new gPowerListener(plugin));
} }

View file

@ -6,7 +6,7 @@ import org.bukkit.entity.Player;
import alisolarflare.components.gpowers.gPowerMemory; import alisolarflare.components.gpowers.gPowerMemory;
import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.chat.TBMCCommandBase;
public class gPowerCommand extends TBMCCommandBase { public class GPower extends TBMCCommandBase {
@Override @Override
public boolean OnCommand(CommandSender sender, String label, String[] args) { public boolean OnCommand(CommandSender sender, String label, String[] args) {

View file

@ -7,6 +7,11 @@ import java.util.List;
import alisolarflare.components.links.entities.Link; import alisolarflare.components.links.entities.Link;
/**
* @deprecated
* @author Alisolarflare
*
*/
public class Deserializer{ public class Deserializer{
public static void main (String args[]) { public static void main (String args[]) {
@ -15,7 +20,8 @@ public class Deserializer{
//List<Link> aliLink = deserializer.loadLink(aliLink); //List<Link> aliLink = deserializer.loadLink(aliLink);
//System.out.println(aliLink); //System.out.println(aliLink);
} }
/**@deprecated*/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public List<Link> loadLinkList(){ public List<Link> loadLinkList(){
List<Link> aliLinkList; List<Link> aliLinkList;

View file

@ -7,6 +7,11 @@ import java.util.List;
import alisolarflare.components.links.entities.Link; import alisolarflare.components.links.entities.Link;
/**
* @deprecated
* @author Alisolarflare
*
*/
public class Serializer { public class Serializer {
public static void main (String args[]) { public static void main (String args[]) {
@ -14,7 +19,7 @@ public class Serializer {
//Serializer serializer = new Serializer(); //Serializer serializer = new Serializer();
//serializer.saveLink(plugin, frequency, location) //serializer.saveLink(plugin, frequency, location)
} }
/**@deprecated*/
public void saveLinkList(List<Link> aliLinkList){ public void saveLinkList(List<Link> aliLinkList){
//saves link //saves link

View file

@ -1,10 +1,11 @@
package alisolarflare.components.shulker; package graveyard.shulker;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.Module; import alisolarflare.Module;
import alisolarflare.components.shulker.commands.AliShulker; import graveyard.shulker.commands.AliShulker;
/**@deprecated*/
public class AliShulkerModule extends Module { public class AliShulkerModule extends Module {
@Override @Override

View file

@ -1,4 +1,4 @@
package alisolarflare.components.shulker.commands; package graveyard.shulker.commands;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@ -14,7 +14,7 @@ import buttondevteam.lib.chat.TBMCCommandBase;
/** /**
* @author Alisolarflare This class is responsible for the command /aliShulker, which in-game spawns a shulker that: Has a health of 10 Has a wither and invisibility effect present Has noAI And is * @author Alisolarflare This class is responsible for the command /aliShulker, which in-game spawns a shulker that: Has a health of 10 Has a wither and invisibility effect present Has noAI And is
* Glowing * Glowing
*/ *@deprecated*/
public class AliShulker extends TBMCCommandBase { public class AliShulker extends TBMCCommandBase {
@Override @Override