Hello, you can do the following:
public class AsyncChatListener implements Listener {
@EventHandler
public void onAsyncPlayerChat(AsyncPlayerChatEvent event) {
event.getRecipients().stream()
.filter(player -> player.getUniqueId() == /* insert your wanted...
Hello, you could make NBT tags with tr7zw's item NBT api as already mentioned above, or you could use PersistentDataContainer which is built in by Paper in their api.
Both ways are great anyways.
Hello, this Resource might help you.
But I really don't understand, why you are trying to achieve that...?
You can get the instance of CommandMap by doing Bukkit#getCommandMap();
Well you would want to handle the world creation asynchronously.
If you meant that you want to create a world as an arena for mini-game for example, what you would want to do is to copy the "source" files (your main world) .
Here is an old post that will teach you how to do it.
Important thing...
YAML file is sensitive for Indentation, make sure everything is indented correctly.
More than that I would suggest a recode for this command.
package me.notro.sumowarriors.commands;
import lombok.NonNull;
import net.kyori.adventure.text.Component;
import...
Hey, if you are trying to color fix a message you could do:
Please note that I'm using a LegacyComponentSerializer, and not TextReplacementConfig, make sure to learn this.
Glad to help! :)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.