2011-10-09 21:57:43 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
2011-03-22 15:45:41 +01:00
|
|
|
|
2014-10-13 11:42:40 +02:00
|
|
|
import java.util.Collections;
|
2014-10-13 15:14:34 +02:00
|
|
|
import java.util.Set;
|
2014-10-13 11:42:40 +02:00
|
|
|
|
2013-04-09 12:56:29 +02:00
|
|
|
import com.massivecraft.factions.Perm;
|
2014-06-04 14:02:23 +02:00
|
|
|
import com.massivecraft.massivecore.cmd.req.ReqHasPerm;
|
|
|
|
import com.massivecraft.massivecore.cmd.req.ReqIsPlayer;
|
|
|
|
import com.massivecraft.massivecore.ps.PS;
|
2011-03-22 15:45:41 +01:00
|
|
|
|
2014-10-13 15:14:34 +02:00
|
|
|
|
|
|
|
public class CmdFactionsSetOne extends CmdFactionsSetXSimple
|
2011-10-09 18:35:39 +02:00
|
|
|
{
|
2013-11-11 09:31:04 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2014-10-13 15:14:34 +02:00
|
|
|
public CmdFactionsSetOne()
|
2011-10-09 18:35:39 +02:00
|
|
|
{
|
2013-11-11 09:31:04 +01:00
|
|
|
// Aliases
|
2014-10-13 15:14:34 +02:00
|
|
|
this.addAliases("o", "one");
|
2013-11-11 09:31:04 +01:00
|
|
|
|
|
|
|
// Requirements
|
2013-04-16 09:48:57 +02:00
|
|
|
this.addRequirements(ReqIsPlayer.get());
|
2014-10-13 15:14:34 +02:00
|
|
|
this.addRequirements(ReqHasPerm.get(Perm.SET_ONE.node));
|
2011-03-22 15:45:41 +01:00
|
|
|
}
|
2013-11-11 09:31:04 +01:00
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE
|
|
|
|
// -------------------------------------------- //
|
2014-10-13 15:14:34 +02:00
|
|
|
|
2011-06-21 07:38:31 +02:00
|
|
|
@Override
|
2014-10-13 15:14:34 +02:00
|
|
|
public Set<PS> getChunks()
|
2011-10-09 18:35:39 +02:00
|
|
|
{
|
2014-10-13 15:14:34 +02:00
|
|
|
final PS chunk = PS.valueOf(me).getChunk(true);
|
|
|
|
final Set<PS> chunks = Collections.singleton(chunk);
|
|
|
|
return chunks;
|
2011-03-22 15:45:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|