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,21 +1,25 @@
|
|||
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.SetupWorldBorders;
|
||||
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 SetupWorldBorders());
|
||||
registerCommand(plugin, new SetupWorldBorders());
|
||||
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());
|
||||
|
|
|
@ -2,13 +2,12 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class ActivatePowers extends TBMCCommandBase{
|
||||
public class ActivatePowers extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -17,17 +16,4 @@ public class ActivatePowers extends TBMCCommandBase{
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
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;
|
||||
}
|
||||
|
||||
}
|
|
@ -2,13 +2,13 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class SetupWorldBorders extends TBMCCommandBase {
|
||||
public class SetWorldBorders extends DevCommand {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -17,17 +17,4 @@ public class SetupWorldBorders extends TBMCCommandBase {
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class ShrinkWorldBorders extends TBMCCommandBase {
|
||||
public class ShrinkWorldBorders extends DevCommand {
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
@ -17,17 +17,4 @@ public class ShrinkWorldBorders extends TBMCCommandBase {
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class SpreadPlayers extends TBMCCommandBase{
|
||||
public class SpreadPlayers extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
@ -18,16 +18,4 @@ public class SpreadPlayers extends TBMCCommandBase{
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetPlayerOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean GetModOnly() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class StartTimer extends TBMCCommandBase{
|
||||
public class StartTimer extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
@ -17,17 +17,4 @@ public class StartTimer extends TBMCCommandBase{
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class StartUHC extends TBMCCommandBase{
|
||||
public class StartUHC extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
@ -17,17 +17,4 @@ public class StartUHC extends TBMCCommandBase{
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ package alisolarflare.easyuhc.commands;
|
|||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||
import alisolarflare.DevCommand;
|
||||
|
||||
public class TeleportToUHC extends TBMCCommandBase{
|
||||
public class TeleportToUHC extends DevCommand{
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||
|
@ -17,17 +17,4 @@ public class TeleportToUHC extends TBMCCommandBase{
|
|||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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