►►► ProtectionCrystals ◄◄◄ icon

►►► ProtectionCrystals ◄◄◄ -----

Protect your players against mobs in cool way!



Protection crystals protects player from mobs. If player has crystal in hand, mobs around will get knockback and damage every XX seconds!



How to use this?
Player needs to hold crystal with specific name configured in config. If player holds it, plugin will check every XX seconds if there are specific mobs in area. If yes, they will get specific knockback and damage. All important values are easily configurable in plugin. You can also create more crystals. You only need to keep id unique. You can create unlimited amount of crystals!

Is this plugin for me?
If you want to add new function, reward rich players, make game more interesting or help new players... yes, this is for you.

Is there command to buy it?
Not yet, it will be added later.
You can give players crystals with command /pc give <PLAYER> <CRYSTAL ID>

Debug mode
Debug mode is meant to help you with debugging. Debugging level specifies what you should know.
All - logs everything
info - info only, no errors,no warnings
Warnings - log warnings and errors only
Errors - errors only, ignores warnings and info
Debug mode reads config and check errors in it. It will tell if you have mistakes in config or if your settings is bad and may affect server performance.
[​IMG]

Permissions
In order to use /pc commands, you need permissions crystals.admin
You can configure required permission to use specific crystal in config.

Commands

/pc give <player> <crystal> - give specific crystal to player
/pc debug - run debug
/pc reload - reload config


Troubleshooting

It makes my server laggy. What I should do?

- You can change settings of crystals - decrease range, limit max amount of mobs or decrease period. We also recommend run /pc debug and enable it so it will run automatically on every reload of plugin. Debug mode will give you detailed informations about recommended settings without decrease server performance!

Players are making fake crystals. What I can do?
- there are 2 ways how to prevent it. Set name colored OR set anvil_disable to true. It will make players unable to place prismarine shards into anvil. Note: if you change name, all current crystals will stop working!

Some of my mobs are not working with crystals - they should get knockback and damage, but they are not getting it!
Run /pc debug and debug will tell if you is mispelled name of any entity.

Config

Code (Text):
Plugin:
prefix: "&0[&aProtection&bCrystals&0]"
mode: "debug" #normal or debug. Debug is recommended for testing
allow_offhand: true #Allow second hand?
anvil_disable: true #make players unable to use shards in anvils? can be used against renaming and making fake crystals
debug_settings:
  level: "all" #all, info, warnings or errors. Only if debug mode is enabled!
  # errors - erros only
  # warnings - warnings and errors only
  # info - info only
  # all - all
settings:
  Rare: #unique id of crystal
   mobs: #mobs that will get damage and knockback
    - zombie
    - spider
   range: 40 #range of protection in blocks
   interval: 3 #how often in seconds mobs will be checked in area
   name: "&aRare protection crystal" #name of crystal. We recommend to use colors so players can't create fake crystals by rename
   mobLimit: 15 #max amount of detected mobs in 1 period. 0 for unlimited
   lore: "&athis_rare_crystal//&acan protect you//&aagainst zombies and spiders" #lore, use || for new line
   knockback_force: 3 #force of knockback. 0 to disable
   damage: 4 #damage by 4 hearts
   require_permission: "crystals.rare" #set required permission to use. "" for nothing.
  Farmer: #unique id of crystal
   mobs: #mobs that will get damage and knockback
    - pig
    - cow
    - sheep
    - horse
    - donkey
    - chicken
    - donkeyy
   range: 12 #range of protection in blocks
   interval: 6 #how often in seconds mobs will be checked in area
   name: "&eFarmer Crystal" #name of crystal. We recommend to use colors so players can't create fake crystals by rename
   mobLimit: 20 #max amount of detected mobs in 1 period. 0 for unlimited
   lore: "&aThis Farmer crystal//&acan help you with//&akilling animals" #lore, use || for new line
   knockback_force: 5 #force of knockback. 0 to disable
   damage: 3 #damage by 3 hearts
   require_permission: "crystals.farmer" #set required permission to use. "" for nothing.
version: 1.0 #DON'T TOUCH THIS


 
Join my Patreon!
Resource Information
Author:
----------
Total Downloads: 137
First Release: Aug 22, 2022
Last Update: Aug 22, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings