I'm trying to make a tooltip for a Minecraft plugin text so when hover it shows the hi on the tool I keep seeing people using out of date resources and I can't find any new this on the Webb
package ga.harrytubestudios.helloworld.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import ga.harrytubestudios.helloworld.main;
public class hellocomamnd implements CommandExecutor {
private main plugin;
public hellocomamnd(main plugin) {
this.plugin = plugin;
plugin.getCommand("hello").setExecutor(this);
}
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)){
sender.sendMessage("player only command");
return true;
}
Player p = (Player) sender ;
p.sendMessage("hi");
return true;
}
}
please help me I can't find any help and I hope this can help any one