Buggy code:
public class TribeCommand { private final TribesPlugin plugin ; public TribeCommand ( TribesPlugin plugin ) { } @ Command ( identifier = "tribe" , description = "base<seq2seq4repair_space>tribe<seq2seq4repair_space>command" , onlyPlayers = false , permissions = "tribes.command" ) public void baseCommand ( CommandSender sender ) { } @ Command ( identifier = "tribe<seq2seq4repair_space>create" , onlyPlayers = false , permissions = "tribes.command.create" ) public void createByConsoleSubcommand ( CommandSender sender , @ Arg ( name = "player" , def = "" ) String playerName ) { } @ Command ( identifier = "tribe<seq2seq4repair_space>claim" , onlyPlayers = true , permissions = "tribes.command.claim" ) public void claimSubcommand ( Player player ) { Member member = plugin . getMemberManager ( ) . getMember ( player . getUniqueId ( ) ) . or ( new Member ( player . getUniqueId ( ) ) ) ; if ( ! ( plugin . getMemberManager ( ) . hasMember ( member ) ) ) { plugin . getMemberManager ( ) . addMember ( member ) ; } if ( ( ( member . getTribe ( ) ) == null ) || ( ! ( plugin . getTribeManager ( ) . getTribe ( member . getTribe ( ) ) . isPresent ( ) ) ) ) { MessageUtils . sendMessage ( player , "<red>You<seq2seq4repair_space>cannot<seq2seq4repair_space>claim<seq2seq4repair_space>if<seq2seq4repair_space>you<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>part<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>tribe." ) ; return ; } Chunk chunk = player . getLocation ( ) . getChunk ( ) ; Vec2 vec2 = Vec2 . fromChunk ( chunk ) ; Cell cell = plugin . getCellManager ( ) . getCell ( vec2 ) . or ( new Cell ( vec2 ) ) ; if ( ( cell . getOwner ( ) ) != null ) { MessageUtils . sendMessage ( player , "<red>You<seq2seq4repair_space>cannot<seq2seq4repair_space>claim<seq2seq4repair_space>a<seq2seq4repair_space>cell<seq2seq4repair_space>if<seq2seq4repair_space>it's<seq2seq4repair_space>already<seq2seq4repair_space>claimed." ) ; return ; } Tribe tribe = plugin . getTribeManager ( ) . getTribe ( member . getTribe ( ) ) . get ( ) ; if ( ! ( tribe . isValidated ( ) ) ) { MessageUtils . sendMessage ( player , "<red>You<seq2seq4repair_space>cannot<seq2seq4repair_space>claim<seq2seq4repair_space>if<seq2seq4repair_space>your<seq2seq4repair_space>tribe<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>validated." ) ; return ; } int cap = ( plugin . getSettings ( ) . getInt ( "config.cells-per-member" , 1 ) ) * ( plugin . getMemberManager ( ) . getMembersWithTribe ( tribe . getUniqueId ( ) ) . size ( ) ) ; int numOfCells = plugin . getCellManager ( ) . getCellsWithOwner ( tribe . getUniqueId ( ) ) . size ( ) ; if ( numOfCells >= cap ) { MessageUtils . sendMessage ( player , "<red>You<seq2seq4repair_space>cannot<seq2seq4repair_space>claim<seq2seq4repair_space>another<seq2seq4repair_space>cell<seq2seq4repair_space>for<seq2seq4repair_space>your<seq2seq4repair_space>tribe." ) ; return ; } if ( ( ( member . getRank ( ) ) != ( Rank . LEADER ) ) || ( ( tribe . getRank ( member . getUniqueId ( ) ) ) != ( Rank . LEADER ) ) ) { MessageUtils . sendMessage ( player , "<red>You<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>the<seq2seq4repair_space>leader<seq2seq4repair_space>of<seq2seq4repair_space>your<seq2seq4repair_space>tribe<seq2seq4repair_space>in<seq2seq4repair_space>order<seq2seq4repair_space>to<seq2seq4repair_space>claim." ) ; return ; } <START_BUG> cell . setOwner ( tribe . getOwner ( ) ) ; <END_BUG> plugin . getCellManager ( ) . placeCell ( vec2 , cell ) ; MessageUtils . sendMessage ( player , "<green>You<seq2seq4repair_space>claimed<seq2seq4repair_space>this<seq2seq4repair_space>cell<seq2seq4repair_space>for<seq2seq4repair_space>your<seq2seq4repair_space>tribe!" ) ; } @ Command ( identifier = "tribe<seq2seq4repair_space>validate" , onlyPlayers = false , permissions = "tribes.command.validate" ) public void validateSubcommand ( CommandSender sender , @ Arg ( name = "tribe" , def = "" ) String tribeName ) { } @ Command ( identifier = "tribe<seq2seq4repair_space>name" , onlyPlayers = true , permissions = "tribes.command.name" ) public void nameSubcommand ( Player sender , @ Arg ( name = "name" ) String name ) { } }

Fix:
cell . setOwner ( tribe . getUniqueId ( ) ) ;