On servers there are ChestMenus with custom names. And I want to know how to return the name of one of these chests, so how:
Public boolean chestName (string name) {
If (chestname.equals (name)) {
Return true;
} else
Return false
Boolean can only return true or false
So whether the parameter string matches the name of the chest
If so, then true
If (chestname == name) {
…
}
I would not use Equals in this case
But how do I define chestname