I just thought i would make this because i was in need of a quick one for my server and as i was copying other peoples work that they kindly had released, it was working 50% and the other 50% was just failing on me, so i decided to take about 10 minutes just to come up with a simple one that fully works, with no issues.
If you need help, feel free to comment
or if u have questions feel free to comment.
Go to commands.java
and simply just copy and paste the code below
you can tidy it up if you would like but, a simple copy and paste will do the work just fine!