MassiveCraft / Factions

https://www.massivecraft.com/factions
245 stars 590 forks source link

CommandSender Link #1338

Open ghost opened 5 years ago

ghost commented 5 years ago

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 commented 5 years ago

Read the error in your console and post it here.