BookMeta book = (BookMeta) item.getItemMeta(); String title = book.getTitle(); This is how you get the title. book.getPage(0); to get the page 1
yodelingduck Make sure you are using the correct Minecraft version
ZonalYewHD getConfig() is a method on JavaPlugin class. I would recommend using a singleton but there are other many methods to do this....
Here is how you get enchantments using name: Enchantment encha = Enchantment.getByName("name"); item.addEnchantment(encha, 1);
Please post your class.
There are lots of ways to do this. One way would be to use static: public class A { public static ArrayList<String> array = new...
You cannot cast AntiSpam to Plugin. Because the class AntiSpam doesn't extend JavaPlugin class.
Are you executing the command from the console?
You have countdown--; which will -1 from countdown every second. but you also need to add s--; every second and m--; every minute.
Try using: buyitickets.addItem(iticket1);
You could check if player is in creative mode. if (player.getGameMode() == GameMode.CREATIVE) { //Creative inventory }
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(sender instanceof Player) {...
MrInterBugs Can you post your whole class, So we can see what's going on :)
Try replacing player.getDisplayName() with player.getName()
1) Which line are you getting the error on? and what if you hover over the red line in eclipse. It will say what is the error is, What does it...
What is line 62?
footy You are welcome
for(Player player : Bukkit.getServer().getOnlinePlayers()) { if (player.hasPermission("your.permission")) {...
if (cmd.getName().equalsIgnoreCase("potioncraft")) { if (args.length == 0) { return false; } if (args.length > 2) {...
MrInterBugs I didn't watch the video. but it would depend on how balance are saved, For example if balanced are saved on config.yml in this...
Separate names with a comma.