DefensiveTurrets | Defend Yourself using Turrets! [1.8-1.16] icon

DefensiveTurrets | Defend Yourself using Turrets! [1.8-1.16] -----

Mechanic in which users can place and upgrade Turrets to defend themselves against enemies




-Added siege_turret_destroy_blocks option. If enabled, siege turrets will destroy ALL blocks with the explosion.
-Fixed issue with some chat formatting plugins when adding users to turret whitelist.
-Fixed some warning errors on console.
----------, Feb 10, 2021

-Fixed compatibility issues with Towny allies.
-Fixed compatibility with Citizens NPCs.
----------, Dec 19, 2020

-Added compatibility for 1.16.4.
----------, Nov 7, 2020

-Fixed console error in latest update.
----------, Sep 21, 2020

-Fixed: Tamed animals will be not targeted anymore by the owner's turret.
-Fixed issue with disabled turrets becoming enabled again when starting the server.
-Fixed: Turrets inventory will be closed now when turret is destroyed.
----------, Sep 20, 2020

-Added compatibility for 1.16.2.
-Fixed API bug in TurretPlaceEvent event.
----------, Aug 25, 2020

-Added Better Teams plugin compatibility.
-Fixed some NullPointerExceptions on CMI Holograms.
----------, Jul 26, 2020

-Added compatibility for 1.16.
-Added compatibility for CMI Holograms.
-Fixed Lands plugin integration.
-Fixed death message by turrets.
----------, Jun 28, 2020

-Fixed bug with Lands integration.
----------, Jun 24, 2020

-Added defensiveturrets.infiniteammo permission to allow players having infinite ammo on turrets.
-Added extra messages for the inventory of the Healing Turret.
-Added whitelist_ignore_case option when adding players to the turret whitelist.
-Fixed duplication bug when placing turrets with left hand.
-Fixed bug regarding water destroying turrets.
-Fixed Lands plugin integration issue.
-Fixed possible bug with FactionsUUID.
-Fixed targeting of Villagers.
----------, Jun 20, 2020

-Added Lands plugin compatibility.
-Modified: All compatibility options (Regarding factions,towny,clans) were changed to ally_protection option.
-Fixed piston exploit to destroy turrets.
-Fixed death message when player is damaged by other reason.
-Fixed turret DamageCause bug.
----------, May 22, 2020

-Added custom death message from turrets.
-Fixed: Players in vanish will not receive damage from turrets anymore.
----------, Apr 30, 2020

-Added: Turret blocks now will remain upgrades.
----------, Apr 13, 2020

-Added default_turret_options option.
-Added: Blocks of turrets could now be a head with texture. More info on the post.
-Fixed interaction with turrets and anvils.
----------, Mar 20, 2020

-Added Infinite Ammo option for OP players in the Ammunition Inventory of the Turret.
-Fixed possible bug with protection plugins when placing a Turret.
-Fixed errors in console when turrets are placed on a deleted world.
-Fixed incompatibility issues because of Vault not being sofdepend.
----------, Mar 8, 2020

-Fixed spam log in console.
----------, Mar 1, 2020

-Added shoot_through_liquids option. If enabled, turrets will be able to shoot through water and lava.
-Fixed turret heads being destroyed by water.
-Fixed bats targeting.
----------, Mar 1, 2020

-Added compatibility for Clans plugin: https://www.spigotmc.org/resources/clans-clan-system-1-7-1-15.22304/
-Added alias for command: /defensiveturrets
----------, Feb 15, 2020

-Added: Turret Design is now configurable. You can modify the 2 blocks and the head of the turret.
-Added material auto check for 1.13- versions.
-Fixed performance issue when checking for turrets to destroy.
----------, Jan 28, 2020

-Added /dt removeturrets <world/player/all> <value> command, to remove placed turrets.
-Fixed: Turrets will now drop ammo when destroyed.
-Fixed: When removing a turret manually, ammo will be received too if receive_turret_on_destroy option is enabled
----------, Jan 22, 2020

-Added drop_turret_on_destroy option. When this is enabled, turrets will drop a turret block when being destroyed (like from explosions, or worldedit)
-Fixed bug when placing turret beneath blocks (or chests).
-Fixed console error when clicking on ammunition inventory.
----------, Jan 13, 2020

-Added new Turret: Healing
[​IMG]
Description:
Slow speed turret that heals multiple allies.
Format:
- "Price;min_damage;max_damage;cooldown(in seconds);range(in blocks);max_targets"
upgrades:
- "0;2-4;6;5;2"
- "800;3-5;5.5;6;3"
- "2500;4-6;5;7;4"

-Modified informationHologram message to:
Code (Text):
informationHologram:
    - "&8[&6%turret_name%&8]"
    - "&7Owner: &a%owner%"
    - "&7Level: &a%level%"
    - "%damage_type%: &a%min%&8-&a%max%"
    - "%error%"
----------, Dec 16, 2019

-Added compatibility with 1.15.
----------, Dec 12, 2019

-Added receive_turret_on_destroy option. If this option is enabled, players will receive the Turret block when destroying it. Doesn't keep the upgrades.
-Added compatibility for FactionsUUID.
----------, Dec 3, 2019

-Added blacklisted_worlds option.
-Fixed bug making items unbreakable when clicking on ammo inventory.
----------, Nov 28, 2019

-Added turrets_global_check_time option to fix and remove turrets which were destroyed by external sources, like WorldEdit. You can define the time of this periodical check in the config.
-Added ignore_damage_to_invisible_players option.
-Fixed: Players in creative and spectator mode will not be shot by turrets anymore.
----------, Nov 22, 2019

-Added Ammunition for Turrets option.
-Added /dt giveammo <turret> <jugador> <amount> command to give Ammunition to players.
-Added activation button for Turrets. You can enable or disable one of your turrets whenever you want. This will be needed to add ammo to your turret.
-Modified the informationHologram message (Added %error% variable. This line will appear in the hologram when some error is detected in your turret.)
Code (Text):
    informationHologram:
    - "&8[&6%turret_name%&8]"
    - "&7Owner: &a%owner%"
    - "&7Level: &a%level%"
    - "&7Damage: &a%min%&8-&a%max%"
    - "%error%"
-Fixed bug in 1.13+ when turrets try to shoot in underground caves.
----------, Nov 3, 2019

-Added defensiveturrets.admin.open permission to open other people's turrets.
-Fixed error in 1.13+ versions when trying to add whitelisted players to a turret.
----------, Oct 31, 2019

-Added walls_better_check option. When enabled, more blocks will be checked to determine if there are obstacles between an entity and the turret. The performance could decrease a little bit.
-Fixed holograms in 1.14.X.
-Fixed Laser Turret when power is set to 0.
----------, Oct 5, 2019

-Added towny_ally_compatibility option. When enabled, towny allies will not be attacked by your turrets.
----------, Sep 15, 2019

-Added Player Inventory for each Turret: Here you can define a list of whitelisted players which the turret should not attack.
-Fixed compatibility bug with different Factions versions.
-Fixed factions check with Siege Turret.
----------, Aug 9, 2019

-Fixed bug when detecting targets in 1.8 versions.
-Fixed error when not using Factions.
----------, Jul 23, 2019

-Added support for SavageFactions
-Fixed hologram y location in 1.14 versions.
-Fixed bug when OP players remove turrets
-Fixed target: Shulkers
----------, Jul 18, 2019

-Fixed: Op players now can modify/destroy any turrets.
-Fixed bug that was allowing turrets to shoot through Grass blocks.
-Fixed hologram visibility bug.
----------, Jul 4, 2019

-Added factions_ally_compatibility option. When enabled, faction allies will not be attacked by your turrets.
----------, Jun 21, 2019

-Added permissions to enable/disable turret attack options.
(defensiveturrets.options.attackmonsters, defensiveturrets.options.attackplayers, defensiveturrets.options.attackanimals)
-Fixed holograms for 1.14+.
----------, Jun 1, 2019

-Added defensiveturrets.limit.X permission and turret_limit_permissions option in the config.
When enabled, you can limit the amount of turret that players can place. For example, groups with the permission defensiveturrets.limit.5 will be able to place a maximum of 5 turrets. If a group doesn't have a limit permission the default limit will be used.
-Fixed ID errors with 1.12- versions
----------, May 29, 2019

-Added option protect_turrets_from_explosions in the config. If is set to false, turrets will be destroyed and removed from the config when exploding.
-Fixed placement of turrets in protected areas.
-Fixed some targets: Slimes, Magma Cubes, Phantoms, Ghasts
----------, May 26, 2019

-Added multiple warning messages to check if an item ID/name is wrong or not.
-Fixed bug when looking at Turrets in 1.14
-Fixed some minor bugs related to HolographicDisplays when not having it installed
----------, May 22, 2019

-Added: Turrets can now attack players and animals.
-Added new inventory menu where players can change target options for each of their turrets.
-Fixed some inventory interaction issues.
----------, May 21, 2019

-Added small API with 2 events.
For this to work you need to add my plugin to your plugin external jars dependencies and to set softdepends: DefensiveTurrets on your plugin.yml file

Code (Java):
//Event called when player places a Turret Block
@EventHandler
public void placeTurret (TurretPlaceEvent event ) {
   Player player = event. getPlayer ( ) ;
    String turretName = event. getTurretName ( ) ;
   Location turretLocation = event. getLocation ( ) ;
}
Code (Java):
//Event called when a Turret kills an entity
@EventHandler
public void turretKill (TurretKillEvent event ) {
    String owner = event. getOwnerName ( ) ;
    String turretName = event. getTurretName ( ) ;
    Entity killedEntity = event. getEntity ( ) ;
}
----------, May 12, 2019

-Fixed Siege Turret Projectile trajectory and hit.
-Fixed impact sound of Siege Turret.
----------, May 12, 2019

-Fixed bug in 1.13 when placing turrets.
-Fixed bug in 1.13 with Laser Turret particle.
----------, May 11, 2019

-Added Update System (Check when new version of the plugin is available)
-Added per_turret_permission option in the config. If this option is enabled, you have to add the corresponding permission of turrets to players. (defensiveturrets.use.<turret_name>)
----------, May 9, 2019

Resource Information
Author:
----------
Total Downloads: 35,019
First Release: May 8, 2019
Last Update: Feb 10, 2021
Category: ---------------
All-Time Rating:
131 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings