package com.massivecraft.factions.cmd; import java.util.Collections; import java.util.Set; import com.massivecraft.factions.Perm; import com.massivecraft.massivecore.cmd.req.ReqHasPerm; import com.massivecraft.massivecore.cmd.req.ReqIsPlayer; import com.massivecraft.massivecore.ps.PS; public class CmdFactionsSetOne extends CmdFactionsSetXSimple { // -------------------------------------------- // // CONSTRUCT // -------------------------------------------- // public CmdFactionsSetOne() { // Aliases this.addAliases("o", "one"); // Requirements this.addRequirements(ReqIsPlayer.get()); this.addRequirements(ReqHasPerm.get(Perm.SET_ONE.node)); } // -------------------------------------------- // // OVERRIDE // -------------------------------------------- // @Override public Set getChunks() { final PS chunk = PS.valueOf(me.getLocation()).getChunk(true); final Set chunks = Collections.singleton(chunk); return chunks; } }