Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

CommandSender Link #1338

Open
ghost opened this issue Dec 4, 2018 · 1 comment
Open

CommandSender Link #1338

ghost opened this issue Dec 4, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 4, 2018

Help please => https://image.noelshack.com/fichiers/2018/49/2/1543955484-capture.png

`public class CmdFactionsSetOne extends CmdFactionsSetXSimple
{
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //

public CmdFactionsSetOne(boolean claim)
{
	// Super
	super(claim);
	
	// Aliases
	this.addAliases("one");

	// Requirements
	this.addRequirements(ReqIsPlayer.get());
	String node = claim ? Perm.CLAIM_ONE.node : Perm.UNCLAIM_ONE.node ;
	this.addRequirements(ReqHasPerm.get(node));
}

// -------------------------------------------- //
// OVERRIDE
// -------------------------------------------- //

@Override
public Set<PS> getChunks()
{
	final PS chunk = PS.valueOf(me.getLocation()).getChunk(true);
	final Set<PS> chunks = Collections.singleton(chunk);
	return chunks;
}

}`

@markhughes
Copy link
Contributor

Read the error in your console and post it here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant