bdubz4552 Indeed, getPlayer() returns null if the player cannot be found. You should have a null check before calling the hasPlayedBefore() method
By not using this, I meant by replacing it with your TigreGames instance called 'plugin'
then don't use this.
the command_hg instance should be static. SeanyJo
no, not in that class. Inside your main class, where you type: Command_HG instance, you need to allocate memory and assign data to it by:...
You have this declared in Main: public static TigreGames plugin; It should be: public static TigreGames plugin = new TigreGames() It's the...
yea, just post that class. For some reason, when you're referencing it, it's null at that point. Either that, or the pointer of the class you pass...
The problem isn't the class name, it's an issue within that class itself. Post where you declare/init the map itself.
the error is in whatever class your referencing when calling plugin
your map was most likely never initialized
SeanyJo Then the issue is with your map. What exactly is the internal error? Post the stacktrace.
what's wrong with that? If it works, at least try it out
and do the same thing with the line below with it sender.sendMessage() target.sendMessage(/*stuff*/+sender.getName()+/*stuff*/)
swimmer1929 in your send message, instead of concatenating sender, do sender.getName();
spoljo666 try what I said, using bukkit scheduler. That way, you can get the id of it and store/retrieve it easier, plus it's better supported
ItemStack is = new ItemStack(/*Material type*/); ItemMeta im = is.getItemMeta(); im.setLore(/*what you want*/); im.setDisplayName(/*what you...
Rather than having an ArrayList, try a HashMap<String, String>, where the first is who sent, and the second is who it was sent to. Then have the...
Player player1, player2; //in the else{ if(player1 ==null && player2 != null){ //send that args[0] is null }else if (player2 == null && player1...
try using scheduleSyncDelayedTask. //set an int to what it returns id =this.getServer().getScheduler().scheduleSyncDelayedTask(new Runnable(){...
You are checking their Y value as well. Try this instead: Location l = player.getLocation(); if(l.getBlockX() == 500 && l.getBlockZ() == 250){...
Separate names with a comma.