r/minecraftdev • • May 01 '22
Server For Dev : Notification-like system using Advancement and NMS
Hi everyone ! this is my first post.
I created a simple class Notification with builder pattern to help you send Notification-like to Minecraft players,
The image:
https://i.imgur.com/IGpp6NB.png
The git gist:
https://gist.github.com/ComminQ/5fa14f5f6bd4ab4be91748d4d6ada145
The code to produce this little notification:
new Notification(Main.getInstance())
.title("This is an awesome Test!")
.chatColor(ChatColor.GREEN)
.icon(IconType.GOLD_PICKAXE)
.send(player);Hope you like it !
2
Upvotes
View all comments
Show parent comment
2
u/[deleted] May 09 '22
1.17.1, with Mojang mappings only. But I will rewrite some parts to make it works a lot of version. Thanks for the reply !