41 lines
962 B
Java
41 lines
962 B
Java
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<PS> getChunks()
|
|
{
|
|
final PS chunk = PS.valueOf(me).getChunk(true);
|
|
final Set<PS> chunks = Collections.singleton(chunk);
|
|
return chunks;
|
|
}
|
|
|
|
}
|