So I was looking yesterday through a skywars plugin I am using on my server by SVvile and he uses the $p->sendMessage, heres some of the code And I want to replace this count down with titles rather than sending messages and popups could I possibly do it like this? If not could someone tell me how I could do this?
His code PHP: $p->sendMessage("Skywars is started!"); your code should be PHP: $p->addTitle("Skywars is started!"); NOTE: THIS ONLY WORKS ON API3/NETWORK BRANCH OF PM WHICH YOU CAN FIND HERE https://github.com/pmmp/PocketMine-MP/tree/api3/network And, sendMessage and addTitle aren't events!
Sorry I'm kind of new to coding so please excuse my lack of knowledge of not knowing the difference between Events and Functions. But thank you for the advice man I appreciate it a lot! ill definitely start experimenting with these But one thing, Couldn't it also work with Tesseract because it has Title Support? if not then ill switch to the API3/Network
it does work with tesseract but the function is sendTitle instead of addTitle! keep learning dude! I am also learning, it helps me to learn by explaining
Thanks! Ill keep on learning & ill definitely experiment with the Skywars code when I get home (school ya know haha but thank god its Friday) Thanks for the explanation!
You can use DevTools to convert zip's to phar. I think there is a phar download of PocketMine on the Jenkins anyway