I want to get the player whos name matches the name of the block which was placed and updated this players gamemode to survival. But this just gives me gibberish in the console: I tried doing ComponentLike etc but it returned null when I did that. Answer As per the comments you’re trying to get h the name of the
Tag: minecraft
1.12.2 Forge and modern intelliJ IDEA not loading resources [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 5 months ago. Improve this question
Minecraft Client Server Login Protocol – Malformed public key bytes
I was able to get the server list ping to work fine but when I moved on to the login protocol, I’m having some issues. After some analysis with Wireshark it looks like its sending the handshake and login packets in the same packet. I’m starting off with a offline login. Fom what I understand from the Wiki, if you
I’m creating a spigot plugin, and the config file that appears on my test server doesn’t match the one in Intellij [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 6 months ago. Improve this question
how to use a list in another class?
I want to create a list, add blocks to it and then use it in a BlockBreakEvent to check if the block is in the list and cancel the event if it’s not. But I can’t seem to create and add things in it any other way than in the actual event itself (which looks to me like it would
why does my sql table treat 1000 as a middle number?
When I try to sort by a value descending my SQL table does it correctly, but if it sees for example “1000” it always puts it in the middle? for Example: this even happens when I reference it in spigot (I’m using it for a plugin) it outputs it the same way this is how I’m calling it in my
Trying to get getView().getTitle() to work
I was first using only getTitle() for this but then found you need to use getView() as well. So i did but I stil can’t get it to work. FYI This is the error : Cannot resolve method ‘getView’ in ‘Inventory’ I tried changing getInventory() for InventoryView() but still the same error but also the Cannot resolve method ‘InventoryView’ in
Letter appears in console output, but shouldn’t. problem with Bukkit.getConsoleSender().sendMessage();
I’m trying to split code in classes. This code is sending to console text with B letter in start of line, but shouldn’t. Code: in ConsoleWrapper.java but if console.sendMessage((“§c[” + pluginName + “]” + msg)); executing in main class, letter B doesn’t appeat in console. output with cw.notify output with console.sendMessage() Answer It’s not recommended to write your own §
Why does this code only output “Test” when I have the boots on but, it never outputs “no” when I take the boots off?
Here is the code: To specify, when I put the boots on, and move, then it outputs Test. When I take them off, it outputs nothing at all. Please tell me what I am doing wrong, Thanks! Answer Because you don’t have any boots on. I’ll break it down line for line 🙂 The first three lines are obvious Here
Errors with importing JavaPlugin to Eclipse
I want to make a plugin for Minecraft, but I have problem with importing JavaPlugin into Eclipse. When I type I get these 2 errors. I have tried restarting my computer, reinstalling Eclipse, downloading all over again but nothing works. I am sending a link to a screenshot. https://paste.pics/GHDFU Please help, Thank you in advance. Answer First make sure you