Open RemlapVII opened 10 years ago
If you want it merged - make it optional.
I've changed it to an option in the config.
Check your idents and try again. https://github.com/ElgarL/Towny/pull/134/files Mighta mixed tabs+spaces?
Should be fixed, need to double check my preferences in Netbeans. It was working after I compiled it without issue though.
Better, but not quite. You just to an 8 spaces/tab indent after if (TownyWarConfig.cancapturechunks() == true) {
- selection.add(worldCoord);
- TownCommand.checkIfSelectionIsValid(attackingTown, selection, false, 0, false);
- new TownClaim(plugin, null, attackingTown, selection, false, true, false).start();
- } catch (TownyException te) {
- // Couldn't claim it.
+ if (TownyWarConfig.cancapturechunks() == true) {
+ // Defender loses townblock
+ TownyUniverse.getDataSource().removeTownBlock(townBlock);
+ // Attacker Claim Automatically
+ try {
+ List<WorldCoord> selection = new ArrayList<WorldCoord>();
Tabs should be good now.
I realized I hadn't forked my own code and was uploading test code to this. I have fixed it.
Maybe instead of damage add cooldown, item and money cost.
I'll look into it but it seems I still failed to properly rollback my code to before my commit. New to using github.
Just a small edit I needed for Towny. I don't expect that this would be merged with the main branch, but I wanted to make sure that if someone needed it they can get access to this.