Shoved Gpowers into EasyUHC
This commit is contained in:
parent
17c6c10265
commit
02f19712ae
18 changed files with 238 additions and 272 deletions
|
@ -7,10 +7,10 @@ import org.bukkit.plugin.PluginDescriptionFile;
|
|||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.components.flairdoor.FlairDoorModule;
|
||||
import alisolarflare.components.gpowers.GPowerModule;
|
||||
import alisolarflare.components.links.AliLinkModule;
|
||||
import alisolarflare.creativeboundaries.CreativeBoundariesModule;
|
||||
import alisolarflare.easyuhc.EasyUHCModule;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerModule;
|
||||
import alisolarflare.magic.MagicModule;
|
||||
import alisolarflare.minigames.MinigameModule;
|
||||
|
||||
|
|
26
src/alisolarflare/DevCommand.java
Normal file
26
src/alisolarflare/DevCommand.java
Normal 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;
|
||||
}
|
||||
}
|
|
@ -1,24 +1,28 @@
|
|||
package alisolarflare.easyuhc;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.Module;
|
||||
import alisolarflare.easyuhc.commands.ActivatePowers;
|
||||
import alisolarflare.easyuhc.commands.SetupWorldBorders;
|
||||
import alisolarflare.easyuhc.commands.SpreadPlayers;
|
||||
import alisolarflare.easyuhc.commands.StartTimer;
|
||||
import alisolarflare.easyuhc.commands.StartUHC;
|
||||
import alisolarflare.easyuhc.commands.TeleportToUHC;
|
||||
|
||||
public class EasyUHCModule extends Module{
|
||||
@Override
|
||||
public void register(JavaPlugin plugin) {
|
||||
registerCommand(plugin, new ActivatePowers());
|
||||
registerCommand(plugin, new SetupWorldBorders());
|
||||
registerCommand(plugin, new SetupWorldBorders());
|
||||
registerCommand(plugin, new SpreadPlayers());
|
||||
registerCommand(plugin, new StartTimer());
|
||||
registerCommand(plugin, new StartUHC());
|
||||
registerCommand(plugin, new TeleportToUHC());
|
||||
}
|
||||
}
|
||||
package alisolarflare.easyuhc;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.Module;
|
||||
import alisolarflare.easyuhc.commands.ActivatePowers;
|
||||
import alisolarflare.easyuhc.commands.SetUHCLobby;
|
||||
import alisolarflare.easyuhc.commands.SetWorldBorders;
|
||||
import alisolarflare.easyuhc.commands.SpreadPlayers;
|
||||
import alisolarflare.easyuhc.commands.StartTimer;
|
||||
import alisolarflare.easyuhc.commands.StartUHC;
|
||||
import alisolarflare.easyuhc.commands.TeleportToUHC;
|
||||
|
||||
public class EasyUHCModule extends Module{
|
||||
public Location lobbyLocation;
|
||||
@Override
|
||||
public void register(JavaPlugin plugin) {
|
||||
registerCommand(plugin, new ActivatePowers());
|
||||
registerCommand(plugin, new SetUHCLobby(this));
|
||||
registerCommand(plugin, new SetWorldBorders());
|
||||
registerCommand(plugin, new SetWorldBorders());
|
||||
registerCommand(plugin, new SpreadPlayers());
|
||||
registerCommand(plugin, new StartTimer());
|
||||
registerCommand(plugin, new StartUHC());
|
||||
registerCommand(plugin, new TeleportToUHC());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,19 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class ActivatePowers extends TBMCCommandBase{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class ActivatePowers extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
27
src/alisolarflare/easyuhc/commands/SetUHCLobby.java
Normal file
27
src/alisolarflare/easyuhc/commands/SetUHCLobby.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +1,20 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class SetupWorldBorders extends TBMCCommandBase {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class SetWorldBorders extends DevCommand {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,20 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class ShrinkWorldBorders extends TBMCCommandBase {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class ShrinkWorldBorders extends DevCommand {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,21 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class SpreadPlayers extends TBMCCommandBase{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class SpreadPlayers extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,33 +1,20 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class StartTimer extends TBMCCommandBase{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class StartTimer extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,20 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class StartUHC extends TBMCCommandBase{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class StartUHC extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,20 @@
|
|||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class TeleportToUHC extends TBMCCommandBase{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
package alisolarflare.easyuhc.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class TeleportToUHC extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] GetHelpText(String alias) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package alisolarflare.components.gpowers;
|
||||
package alisolarflare.easyuhc.gpowers;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package alisolarflare.components.gpowers;
|
||||
package alisolarflare.easyuhc.gpowers;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.Module;
|
||||
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.easyuhc.gpowers.commands.GPower;
|
||||
import alisolarflare.easyuhc.gpowers.commands.PowerDown;
|
||||
import alisolarflare.easyuhc.gpowers.commands.PowerUp;
|
||||
import alisolarflare.easyuhc.gpowers.listeners.gPowerListener;
|
||||
|
||||
public class GPowerModule extends Module {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package alisolarflare.components.gpowers.commands;
|
||||
package alisolarflare.easyuhc.gpowers.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import alisolarflare.components.gpowers.GPowerMemory;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerMemory;
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class GPower extends TBMCCommandBase {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package alisolarflare.components.gpowers.commands;
|
||||
package alisolarflare.easyuhc.gpowers.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import alisolarflare.components.gpowers.GPowerMemory;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerMemory;
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class PowerDown extends TBMCCommandBase {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package alisolarflare.components.gpowers.commands;
|
||||
package alisolarflare.easyuhc.gpowers.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import alisolarflare.components.gpowers.GPowerMemory;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerMemory;
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
|
||||
public class PowerUp extends TBMCCommandBase {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package alisolarflare.components.gpowers.listeners;
|
||||
package alisolarflare.easyuhc.gpowers.listeners;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
@ -10,7 +10,7 @@ import org.bukkit.potion.PotionEffect;
|
|||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import alisolarflare.components.gpowers.GPowerMemory.poweredPlayer;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerMemory.poweredPlayer;
|
||||
|
||||
public class gPowerApplyingTask extends BukkitRunnable{
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package alisolarflare.components.gpowers.listeners;
|
||||
package alisolarflare.easyuhc.gpowers.listeners;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.components.gpowers.GPowerMemory;
|
||||
import alisolarflare.easyuhc.gpowers.GPowerMemory;
|
||||
|
||||
public class gPowerListener implements Listener{
|
||||
|
||||
|
|
Loading…
Reference in a new issue