Shoved Gpowers into EasyUHC

This commit is contained in:
alisolarflare 2016-11-11 13:43:39 -05:00
parent 17c6c10265
commit 02f19712ae
18 changed files with 238 additions and 272 deletions

View file

@ -7,10 +7,10 @@ import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.flairdoor.FlairDoorModule; import alisolarflare.components.flairdoor.FlairDoorModule;
import alisolarflare.components.gpowers.GPowerModule;
import alisolarflare.components.links.AliLinkModule; import alisolarflare.components.links.AliLinkModule;
import alisolarflare.creativeboundaries.CreativeBoundariesModule; import alisolarflare.creativeboundaries.CreativeBoundariesModule;
import alisolarflare.easyuhc.EasyUHCModule; import alisolarflare.easyuhc.EasyUHCModule;
import alisolarflare.easyuhc.gpowers.GPowerModule;
import alisolarflare.magic.MagicModule; import alisolarflare.magic.MagicModule;
import alisolarflare.minigames.MinigameModule; import alisolarflare.minigames.MinigameModule;

View file

@ -0,0 +1,26 @@
package alisolarflare;
import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase;
public abstract class DevCommand extends TBMCCommandBase{
@Override
public abstract boolean OnCommand(CommandSender sender, String alias, String[] args);
@Override
public abstract String[] GetHelpText(String alias);
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return true;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return true;
}
}

View file

@ -1,24 +1,28 @@
package alisolarflare.easyuhc; package alisolarflare.easyuhc;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.Location;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.Module;
import alisolarflare.easyuhc.commands.ActivatePowers; import alisolarflare.Module;
import alisolarflare.easyuhc.commands.SetupWorldBorders; import alisolarflare.easyuhc.commands.ActivatePowers;
import alisolarflare.easyuhc.commands.SpreadPlayers; import alisolarflare.easyuhc.commands.SetUHCLobby;
import alisolarflare.easyuhc.commands.StartTimer; import alisolarflare.easyuhc.commands.SetWorldBorders;
import alisolarflare.easyuhc.commands.StartUHC; import alisolarflare.easyuhc.commands.SpreadPlayers;
import alisolarflare.easyuhc.commands.TeleportToUHC; import alisolarflare.easyuhc.commands.StartTimer;
import alisolarflare.easyuhc.commands.StartUHC;
public class EasyUHCModule extends Module{ import alisolarflare.easyuhc.commands.TeleportToUHC;
@Override
public void register(JavaPlugin plugin) { public class EasyUHCModule extends Module{
registerCommand(plugin, new ActivatePowers()); public Location lobbyLocation;
registerCommand(plugin, new SetupWorldBorders()); @Override
registerCommand(plugin, new SetupWorldBorders()); public void register(JavaPlugin plugin) {
registerCommand(plugin, new SpreadPlayers()); registerCommand(plugin, new ActivatePowers());
registerCommand(plugin, new StartTimer()); registerCommand(plugin, new SetUHCLobby(this));
registerCommand(plugin, new StartUHC()); registerCommand(plugin, new SetWorldBorders());
registerCommand(plugin, new TeleportToUHC()); registerCommand(plugin, new SetWorldBorders());
} registerCommand(plugin, new SpreadPlayers());
} registerCommand(plugin, new StartTimer());
registerCommand(plugin, new StartUHC());
registerCommand(plugin, new TeleportToUHC());
}
}

View file

@ -1,33 +1,19 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class ActivatePowers extends TBMCCommandBase{ public class ActivatePowers extends DevCommand{
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub return false;
return false; }
}
@Override
@Override public String[] GetHelpText(String alias) {
public String[] GetHelpText(String alias) { // TODO Auto-generated method stub
// TODO Auto-generated method stub return null;
return null; }
} }
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -0,0 +1,27 @@
package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import alisolarflare.DevCommand;
import alisolarflare.easyuhc.EasyUHCModule;
public class SetUHCLobby extends DevCommand{
EasyUHCModule module;
public SetUHCLobby(EasyUHCModule easyUHCModule) {
this.module = easyUHCModule;
}
@Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
module.lobbyLocation = ((Player) sender).getLocation();
return false;
}
@Override
public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub
return null;
}
}

View file

@ -1,33 +1,20 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class SetupWorldBorders extends TBMCCommandBase { public class SetWorldBorders extends DevCommand {
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
}
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,33 +1,20 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class ShrinkWorldBorders extends TBMCCommandBase { public class ShrinkWorldBorders extends DevCommand {
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
}
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,33 +1,21 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class SpreadPlayers extends TBMCCommandBase{ public class SpreadPlayers extends DevCommand{
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
@Override }
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,33 +1,20 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class StartTimer extends TBMCCommandBase{ public class StartTimer extends DevCommand{
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
}
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,33 +1,20 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class StartUHC extends TBMCCommandBase{ public class StartUHC extends DevCommand{
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
}
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,33 +1,20 @@
package alisolarflare.easyuhc.commands; package alisolarflare.easyuhc.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import buttondevteam.lib.chat.TBMCCommandBase; import alisolarflare.DevCommand;
public class TeleportToUHC extends TBMCCommandBase{ public class TeleportToUHC extends DevCommand{
@Override @Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) { public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
public String[] GetHelpText(String alias) { public String[] GetHelpText(String alias) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
}
@Override
public boolean GetPlayerOnly() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -1,4 +1,4 @@
package alisolarflare.components.gpowers; package alisolarflare.easyuhc.gpowers;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View file

@ -1,12 +1,12 @@
package alisolarflare.components.gpowers; package alisolarflare.easyuhc.gpowers;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.Module; import alisolarflare.Module;
import alisolarflare.components.gpowers.commands.GPower; import alisolarflare.easyuhc.gpowers.commands.GPower;
import alisolarflare.components.gpowers.commands.PowerDown; import alisolarflare.easyuhc.gpowers.commands.PowerDown;
import alisolarflare.components.gpowers.commands.PowerUp; import alisolarflare.easyuhc.gpowers.commands.PowerUp;
import alisolarflare.components.gpowers.listeners.gPowerListener; import alisolarflare.easyuhc.gpowers.listeners.gPowerListener;
public class GPowerModule extends Module { public class GPowerModule extends Module {

View file

@ -1,9 +1,9 @@
package alisolarflare.components.gpowers.commands; package alisolarflare.easyuhc.gpowers.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import alisolarflare.components.gpowers.GPowerMemory; import alisolarflare.easyuhc.gpowers.GPowerMemory;
import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.chat.TBMCCommandBase;
public class GPower extends TBMCCommandBase { public class GPower extends TBMCCommandBase {

View file

@ -1,9 +1,9 @@
package alisolarflare.components.gpowers.commands; package alisolarflare.easyuhc.gpowers.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import alisolarflare.components.gpowers.GPowerMemory; import alisolarflare.easyuhc.gpowers.GPowerMemory;
import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.chat.TBMCCommandBase;
public class PowerDown extends TBMCCommandBase { public class PowerDown extends TBMCCommandBase {

View file

@ -1,9 +1,9 @@
package alisolarflare.components.gpowers.commands; package alisolarflare.easyuhc.gpowers.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import alisolarflare.components.gpowers.GPowerMemory; import alisolarflare.easyuhc.gpowers.GPowerMemory;
import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.chat.TBMCCommandBase;
public class PowerUp extends TBMCCommandBase { public class PowerUp extends TBMCCommandBase {

View file

@ -1,4 +1,4 @@
package alisolarflare.components.gpowers.listeners; package alisolarflare.easyuhc.gpowers.listeners;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
@ -10,7 +10,7 @@ import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType; import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
import alisolarflare.components.gpowers.GPowerMemory.poweredPlayer; import alisolarflare.easyuhc.gpowers.GPowerMemory.poweredPlayer;
public class gPowerApplyingTask extends BukkitRunnable{ public class gPowerApplyingTask extends BukkitRunnable{

View file

@ -1,9 +1,9 @@
package alisolarflare.components.gpowers.listeners; package alisolarflare.easyuhc.gpowers.listeners;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.gpowers.GPowerMemory; import alisolarflare.easyuhc.gpowers.GPowerMemory;
public class gPowerListener implements Listener{ public class gPowerListener implements Listener{