@FisheyLP Never mind I've got it! I figured out what was null! And by the way... I know Java. I can read stack traces, I just couldn't figure out...
I'm mostly asking about my code and about the onPlayerJoin event. However, thank you for the link. I may look into later. But please next time, at...
Hello! I am trying to run an if statement when a player joins the game, however I can not get this to happen, and I have no clue why. I keep...
@AlvinB Maybe that's my issue... Would it be okay to call it in the onPlayerJoin event?
@AlvinB Sorry, I'm a bit new... Do you mean doing something like this? public PlayerListener(PvPLevel instance){ plugin = instance; }
@AlvinB Thank you for responding. I define the plugin variable at the top of my PlayerListener class. public static PvPLevel plugin; Also the...
@AlvinB I don't understand because when the play joins I send them a message saying onPlayJoin. How can the player be null if I receive that...
@AlvinB Thank you for your response. Here is what is on the line: player.sendMessage("" + plugin.getConfig().contains("" +...
@bwfcwalshy Ok. SO I've don that. Nothing prints. At least I don't see anything. Also here is the link to my server log when I join....
I did that yesterday :p
@bwfcwalshy To be clear, when you say print what the contains returns do you mean something like the following? plugin.logger.info("" +...
@bwfcwalshy Thank you for your response. I've done just as you've suggested. I've taken out the scheduler. Then I've done some line by line...
Yes I am positive. To make sure I put a sendMessage("onPlayerJoin") above the Runnable and in-game I got that message. @EventHandler public...
Okay, so I've figured it out! For some reason, because it was below the if statement it was not running! There we go! Simple fix!
Hello! I am trying to do a simple if statement to check if the player's unique ID is in the config when he/she joins the game. To do so I put it...
I tried that but it didn't work. The scoreboard is not even showing up. Any suggestions? Is my code wrong? Thank you in advance!
Okay I will save the UUID. I am sorry but I don't understand what you mean by adding the score. Also the scoreboard isn't even showing up. Thank...
Okay. I am doing it now, but the scoreboard still does not appear. @EventHandler public void onPlayerJoin(PlayerJoinEvent event) {...
Hello! I am trying to make a simple scoreboard appear. I've taken all of the right steps however it just seems to not want to appear. I am...
@SuperOriginal Thanks it worked!!! XD
Separate names with a comma.