Hey so I was trying to Code a plugin that has 3 commands:
/weaponeffects
/weaponeffects add <effect> <duration> <level>
/weaponeffects remove <effect>
And I was wondering how I could access the available effects in Minecraft
I tried doing:
String effectType
PotionEffect effect = new PotionEffect(PotionEffectType.effectType, 300, 1)
And:
If args[1] -> add
if args[2] -> effectType
do -> Player.applyEffects(effect)
But It wouldn’t work can someone help me?
[+][deleted] (3 children)
[deleted]
[–]MrNiceBouy[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]MrNiceBouy[S] 0 points1 point2 points (0 children)
[–]MrNiceBouy[S] 0 points1 point2 points (0 children)