HeroCC / BedHome

Continuation of the popular BedHome Plugin
https://dev.bukkit.org/projects/bedhome
GNU General Public License v3.0
6 stars 4 forks source link

Look into using Bukkit's builtin Bed Location Fetcher #2

Open HeroCC opened 7 years ago

HeroCC commented 7 years ago

I recently found [getBedSpawnLocation](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#getBedSpawnLocation()) in the Bukkit API, and after some testing it seems useful for bedmode b as is. With some modifications, it could be used instead of the plugin's beds database.

Possibly submit a PR to @SpigotMC with code for returning a bed location even if it isn't null?