Your problem is already fixed probably, but for the people who are searching for a fix, follow my steps
- Search for CMD and run it as administrator
- Type in the bar:
netsh winsock reset - It should be fixed!
- If it still doesn't work, try contacting Mojang, the creators of Minecraft
My husband is having trouble connecting to my server when i try to open to Lan. It was working yesterday and now after turning both mine and his pc’s off for the night he cant connect.
He keeps getting this error:
java.lang.nullpointerexception: group
Sometimes on my screen i can see that he has joined the game, then a second later it reads that he has left the game. On his screen it just says "Failed to connect to the server disconnected”
Hope someone can help :)
Your problem is already fixed probably, but for the people who are searching for a fix, follow my steps
- Search for CMD and run it as administrator
- Type in the bar:
netsh winsock reset - It should be fixed!
- If it still doesn't work, try contacting Mojang, the creators of Minecraft
If you are playing newer snapshots, This was a recent bug in the 17w14-16
They seem to have finally fixed it in 17w17a/b
It seemed to be related to a number of new additions like advancements and parrots.
Update your server_jar and your minecraft client to 17w17b (current)
If you are getting this issue on 1.11.2 release. Then open a bug report at bugs.mojang.com
when people try to connect to my server, they receive this error messageinternal exception java.lang.nullpointerexception can not invoke "net.minecraft.nbt.compoundtag.m_128459_(string)
i also received this error message as well but during this test for some reason it let me join the server, i've tested this out on singleplayer as well and the world works fine nothing seems to be corrupted it just doesn't work for the server.
we've also made multiple worlds for this specific pack i've made and they all have had this problem, randomly sometimes people will be able to join and play normally but other times they get this error and they cant play.
friends latest.log: https://mclo.gs/mHmks83
servers lastest.log: https://mclo.gs/si9AJk2
So there are a few things you have to fix here because this won't work well.
First of all you have to use setExecutor() instead of creating a new instance of it.
This can be done by adding this into your onEnable() :
this.getCommand("mycommand").setExecutor(new CommandKit());
You will have to specify this command in your plugin.yml as well, here is some documentation about it :
https://www.spigotmc.org/wiki/plugin-yml/
Then you can delete your `HelloCommand()´, you won't need it anymore with what you changed above.
With this your error should go away, let me know if you still have some errors coming up.
A NullPointerException means that at some point of your code an object or anything else is "null". Let me give you a good structure for your main but also your command class.
Main-Class:
package org.devoflua.hello;
import org.bukkit.plugin.java.JavaPlugin;
import org.devoflua.hello.commands.HelloCommand;
public class Main extends JavaPlugin {
public void onEnable() {
System.out.println("Plugin Enabled");
getCommand("hello").setExecutor(new HelloCommand();
}
public void onDisable() {
System.out.println("Plugin Disabled");
}
}
CommandExecutor class:
package org.devoflua.hello.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.devoflua.hello.Main;
public class HelloCommand implements CommandExecutor{
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender instanceof Player) {
Player p = (Player) sender;
if (p.hasPermission("hello.use")) {
p.sendMessage("hi");
} else {
p.sendMessage("You do not have permission to send this message");
}
} else {
sender.sendMessage("Only senders can use this command");
}
return true;
}