I don't see the point in this. Because you'd have to have this method in each class you want to use it in.. Instead, make your own player object with methods or something. This is pretty pointless imho
@ChipDev I have used this for a minigame (With much commands), i have made that method to get easy a permission check (Because i'm lazy).
Also, you'd need another method per permission :/ @Experminator Why not add a String parameter, so it can work easier?
No it doesn't. It returns true or false, depending on whether the sender has permission... see how your comments might be misinterpreted? Also, here's a good guide to go by which I don't mean offensively: When you create some code ask yourself a question - "Does this code deserve its own thread and will be helpful to other people". When that code is 3 lines long, including method declaration and closing brace, the answer to that question will most likely be "no"
I don't think I'll use this if I could just do if(p.hasPermission("")){ This is pretty... hard to use to me. I like knowing all my permissions clearly.