Java or JavaScript?

I'm wanting to learn how to make plugins for my Java server, but I'm hearing conflicting results that I should learn Java, or that I should learn JavaScript. Which language do plugins actually use?

I'm already in the middle of learning HTML so I can kinda dip my toes into the whole world of coding, but after HTML I want to move on to Java or JS.
Was this page helpful?