How can I call functions from a diffrent class. Lets say I have a public function EntityArmorChangeEvent () in the Main.php And I want to use that function in my Armor.php how can I call the function from Main.php and use it to check something in Armor.php?
assume your armor.php have a class called Armor and there's a function called check() you would need to get an instance of Armor like $armor = new Armor $armor->check() IF your method is static like `static public function staticCheck()` you can do `Armor::staticCheck()`