Hi, I have a problem where when I imported org.bukkit.craftbukkit.v1_7_R1.entity.CraftPlayer then it says it cant find this class and I'm wondering is there an alternative for this. Much is appreciated, Brian Mak
Gater12 Yes I did, numerous times already. I'm trying to use Code:java ((CraftPlayer) player).getHandle().ping to get the ping, but the import for CraftPlayer is for v1_7_R1 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
That's the issue with code like that, for the version you're using you'll need to know its numbers. Do /version and you should be able to figure out the numbers. You should see something like 1.7.X- R<number>.
Nateb1121 I know that, but I can't use other R[numbers] here because there is no such class. Im using R3 But, when I replace R1 with R3, it says no class found. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
brian109 You need to get Craftbukkit version 1.7.2 R3 from the development download page and import that build path instead of your current build path that's why the class is not appearing.
Heirteir It still says that the import can't be resolved. I've added both 1.7.8 dev build and 1.7.2 R0.3 build into my build path, but still the same error.
brian109 You don't import both builds you just import 1 build and make sure that your server has the same build as your importing in your plugin