Spigot Plugin Development - 76 - NPC Interaction using ProtocolLib | QuestNPC Plugin

Spigot Plugin Development - 76 - NPC Interaction using ProtocolLib | QuestNPC Plugin

Kody Simpson

2 года назад

8,862 Просмотров

In this episode of the Spigot series, I show you how to code a plugin that is able to listen for NPC right click and left click interaction using ProtocolLib(packet listeners). I demonstrate this while coding out a subscriber suggestion which is a Quest NPC plugin. #Spigot #Minecraft #MCPlugins

Code: https://github.com/Spigot-Plugin-Development-Tutorial/quest-npc-interaction
Join the Community! - https://discord.gg/cortexdev

Want to Support the Channel?
Become a Member: https://www.youtube.com/channel/UC_LtbK9pzAEI-4yVprLOcyA/join
or: https://paypal.me/kodysimpson

My Socials:
Blog: https://simpson.hashnode.dev/
Github: https://github.com/KodySimpson
Instagram: https://www.instagram.com/kody_a_simpson/
Twitter: https://twitter.com/kodysimp

00:00 Intro
0:15 Epic Timestamps :P
1:20 Explanations
3:30 Before we start (Final Product)
5:50 Basic Pom.xml setup
7:55 How are we gonna create our plugin
9:54 Coding the NPCManager, So we can create npc's
13:50 Testing out the NPCManger on the server
14:05 Implementing ProtocolLib and Packets
19:45 Testing if the Packets work
20:15 Why does it output something 4 times
23:00 Testing it out with more output information
25:25 Coding the Quest menu
26:30 Coding the QuestManager (Saving the quest in a config file)
28:50 Coding Quest's
32:00 Coding the QuestManager
41:05 Coding the Quest's form the config into the Menu
44:28 Testing out the Config + Menu
44:34 OH NO.. OUR CODE... ITS BROKEN!
44:50 Fixing the errors
46:35 Testing out the Config + Menu (Take 2)
47:15 Coding the Select Quest modules
52:05 Testing the selection of Quest's
52:30 Oh no.. break; isn't at the right spot!
53:35 Testing the selection of Quest's (Take 2)
54:10 Coding the Tracking of the Quest's
1:00:28 Testing the Tracking of the Quest's
1:01:43 Fixing the messages in the Menu
1:03:00 Testing the Message fixes
1:03:26 Outro
1:04:44 Become a Member to gain Swag and Exclusive content!

More Videos coming soon.
Leave a comment for any future video suggestions.

Тэги:

#programming_tutorial
Ссылки и html тэги не поддерживаются


Комментарии: