potatolain / TravelPortals

A portal system for Bukkit for Minecraft
BSD 2-Clause "Simplified" License
3 stars 2 forks source link

Fix portal owners not beeing able to destroy their own portals #15

Closed Phoenix616 closed 8 years ago

Phoenix616 commented 8 years ago

After enabling permissions support I noticed that portal owners can no longer destroy their own portals even when they have the travelportals.portal.destroy permission. Turns out the owner's name was being compared to the whole player object and not just the player's name.

potatolain commented 8 years ago

Wow.. that's probably been broken for a very long time - I'm surprised you're the first one to report or fix it. Thanks for the PR!

My day has been pretty insane but I'll try to get to cutting a new release with that fix in a few hours. (I may have to push it back, but I'm assuming you're already running with a custom build, so tell me if you aren't/can't and I'll do it as soon as I can!)

Phoenix616 commented 8 years ago

I'm running my own one, no hurries! :)