Ok Thanks. But can you give the exact name of the xpGainEvent? Also, how to cancel the ExpBottleEvent?
Thanks. I meant on how to check if the player has enough exp to level up. So that he cannot just do /level CrazyYoungBro 100 without having enough...
I am somewhat understanding it but not completely. I understand what code you have written but how to implement it in my listener class. I got the...
Please do post it. I am experienced in Java but am a total newbie in Bukkit. I didn't understand from what you said about getInstance() for main.
Fixed it: public void onXpChange(PlayerExpChangeEvent e) { @SuppressWarnings("unused") BukkitTask x = new BukkitRunnable() {...
Thanks. One more thing. This code returns errors: public void onXpChange(PlayerExpChangeEvent e) { BukkitTask x = new BukkitRunnable() {...
One class is set up as you said. Other is here: package me.arihant.levelup; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import...
That is a very nice approach to the given problem. Thanks a lot for all of this. I did all of it. I have two classes. One which contains these...
@I Al Istannen Thanks. Just a last question. How can I implement the prefix stuff in my main class.
@I Al Istannen Instance of main class or event class? Here is my code: public void onXpChange(PlayerExpChangeEvent e) { BukkitTask x =...
Couldn't understand how scheduling works and hwo to implement it into my events class. I know what to do but not how to. Here is my class: package...
Thanks. @WolfMage1 Should I add it to my main class or the other one?
Okay. I had a glance at it. Could you tell in which event to add it? And how to schedule the tasker to 1 tick later?
The LevelUpEvents class contains all the events including AsyncChatEvent. Thanks, I fixed all of that but can you tell me how to implement the...
@Minesuchtiiii Tried it, returns error. The methos setCancelled(boolean) is not defined for the type PlayerLevelChangeEvent
I know that but how to cancel it?
Hello, I am making a plugin in which a player can level up using /level <player> <level> I also needed to add the level prefix to chat so I did...
I know how to level him up but I don't know how to cancel natural level up? Please explain more on that or supply code for it.
Hello, I am making a level up plugin in which I want players to level up using /level only. How can I restrict the natural exp level up?
Thank you.
Separate names with a comma.