This is my first ever plugin and I'm coding a command that can feed a certain player specified in the commands first argument how do i do this pls help
Asked
Active
Viewed 78 times
1 Answers
0
So if you hover over the error you would get
Required type:
Player
Provided:
String
This means you are providing text, not a Player object. To do this you would need to do
import org.bukkit.Bukkit;
Player a = Bukkit.getPlayer(args[0]);

Axisnix
- 2,822
- 5
- 19
- 41