I'll look at the convo tomorrow,
This commit is contained in:
parent
6a9004ea13
commit
e69c20be77
3 changed files with 7 additions and 27 deletions
|
@ -9,7 +9,6 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||
import alisolarflare.components.alilinks.AliLinkComponent;
|
||||
import alisolarflare.components.bankchest.BankChestComponent;
|
||||
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
|
||||
import alisolarflare.components.easyuhc.EasyUHCComponent;
|
||||
import alisolarflare.components.flairdoor.FlairDoorComponent;
|
||||
import alisolarflare.components.gpowers.GPowerComponent;
|
||||
import alisolarflare.components.insurance.InsuranceComponent;
|
||||
|
@ -28,7 +27,6 @@ public class AliPresents extends JavaPlugin{
|
|||
new AliLinkComponent().register(this);
|
||||
new BankChestComponent().register(this);
|
||||
new CreativeBoundariesComponent().register(this);
|
||||
new EasyUHCComponent().register(this);
|
||||
new FlairDoorComponent().register(this);
|
||||
new GPowerComponent().register(this);
|
||||
new InsuranceComponent().register(this);
|
||||
|
|
|
@ -1,28 +1,21 @@
|
|||
package alisolarflare.components.creativeboundaries;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import alisolarflare.architecture.Component;
|
||||
import alisolarflare.components.creativeboundaries.commands.Cbgm0;
|
||||
import alisolarflare.components.creativeboundaries.commands.Cbgm1;
|
||||
import alisolarflare.components.creativeboundaries.commands.SetDickmode;
|
||||
import alisolarflare.components.creativeboundaries.commands.SetForceBoundaries;
|
||||
import alisolarflare.components.creativeboundaries.listeners.PlotChangeListener;
|
||||
|
||||
|
||||
public class CreativeBoundariesComponent extends Component{
|
||||
public boolean dickmode;
|
||||
public List<Player> cbCreatives = new ArrayList<Player>();
|
||||
@Override
|
||||
public void register(JavaPlugin plugin) {
|
||||
registerCommand(plugin, new Cbgm1(this));
|
||||
registerCommand(plugin, new Cbgm0(this));
|
||||
registerCommand(plugin, new SetDickmode(this));
|
||||
|
||||
registerListener(plugin, new PlotChangeListener(this));
|
||||
registerCommand(plugin, new Cbgm1());
|
||||
registerCommand(plugin, new Cbgm0());
|
||||
registerCommand(plugin, new SetForceBoundaries());
|
||||
registerListener(plugin, new PlotChangeListener());
|
||||
//registerListener(plugin, new ItemRestrictionListener(this));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,25 +1,14 @@
|
|||
package alisolarflare.components.creativeboundaries.commands;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import alisolarflare.architecture.commands.PlayerCommand;
|
||||
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
|
||||
import alisolarflare.components.creativeboundaries.CreativeBoundariesAPI;
|
||||
|
||||
public class Cbgm0 extends PlayerCommand{
|
||||
|
||||
private List<Player> cbCreatives;
|
||||
|
||||
public Cbgm0(CreativeBoundariesComponent component) {
|
||||
this.cbCreatives = component.cbCreatives;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean OnCommand(Player player, String arg2, String[] arg3) {
|
||||
player.setGameMode(GameMode.SURVIVAL);
|
||||
cbCreatives.remove(player);
|
||||
CreativeBoundariesAPI.toSurvival(player);
|
||||
return true;
|
||||
}
|
||||
public String[] GetHelpText(String alias){
|
||||
|
|
Loading…
Reference in a new issue