ActionOnInteract icon

ActionOnInteract -----

-The perfect plugin for idk what u could use this for ;)



ActionOnInteract [v1.0]
-The perfect plugin for idk what u could use this for ;)
Versions: 1.19.x, 1.18.x, 1.17.x, 1.16.x

Features:
• Packed config.yml
• Actions for Victim and Damager
• Give an item to a player on action
• Set the amount of the item
• Select the type of interaction damage/right-click
• Send a command as the player on action
• Top support, if you ask nicely in the Discord-Server we'll probably even code you an exclusive feature
and much more...

Discord Server: https://discord.gg/93DURaJxuf
GitHub/Source Code: https://github.com/SpaceNiklas/ActionOnInteract

config.yml:

Code (YAML):
#ItemOnInteract v1.0 Config
#by SpaceNiklas

#Discord: https://discord.gg/93DURaJxuf
#SpigotMC: https://www.spigotmc.org/resources/actiononinteract.105244/

#Here you can edit the plugin to your liking!

#VARIABLES
#%damager% - Variable that represents the damager!
#%victim% - Variable that represents the victim!

#####################
#TYPE OF INTERACTION#
#####################

#Options:
#"damage" - Executes the action when the damager hits/victim gets hit.
#"rightclick" - Executes the action when the damager clicks/victim gets clicked.

type-of-interaction
: 'damage'

#ACTION FOR DAMAGER
#(put "null" to disable)
damager
:
  give-item
: 'DIAMOND' #List of Materials here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html.
  amount-item
: 1 #Amount of the item specified above.
  console-command
: 'effect give %damager% minecraft:strength 10 2' #Input any command without the "/". Executes the command as the console
  player-command
: 'tell %victim% I hit you!' #Input any command without the "/". Executes the command as the player

#ACTION FOR VICTIM
#(put "null" to disable)
victim
:
  give-item
: 'null' #List of Materials here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html.
  amount-item
: 0 #Amount of the item specified above.
  console-command
: 'null' #Input any command without the "/". Executes the command as the console
  player-command
: 'null' #Input any command without the "/". Executes the command as the player

################
#ON PLAYER KILL#
################
#(Variables work here too)

#ACTION FOR KILLER
#(put "null" to disable)
killer
:
  give-item
: 'DIAMOND' #List of Materials here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html.
  amount-item
: 10 #Amount of the item specified above.
  console-command
: 'effect give %damager% minecraft:strength 10 4' #Input any command without the "/". Executes the command as the console
  player-command
: 'tell %victim% I killed you!' #Input any command without the "/". Executes the command as the player

#ACTION FOR THE DEAD PLAYER
#(put "null" to disable)
dead-player
:
  give-item
: 'null' #List of Materials here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html.
  amount-item
: 0 #Amount of the item specified above.
  console-command
: 'null' #Input any command without the "/". Executes the command as the console
  player-command
: 'null' #Input any command without the "/". Executes the command as the player
Resource Information
Author:
----------
Total Downloads: 67
First Release: Sep 12, 2022
Last Update: Sep 13, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings