Skip to content

[the] bed[s] [location[s]] of %offlineplayers%  #4659

@kossnikita

Description

@kossnikita

Suggestion

The method currently used to find the bed is Player.getBedSpawnLocation()
This does not allow you to find the beds of players who are not currently online.
Bukkit has a method OfflinePlayer.getBedSpawnLocation()
This method can replace the current one and it will work for both online and offline players.

Why?

I ran into a problem when I wanted to find out all the players who own a certain bed. And I found that I can't do that with %offlineplayers%'[s] bed[s] [location[s]]. This expression only works with online players.

Other

In my opinion, this change cannot affect already existing scripts.

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    completedThe issue has been fully resolved and the change will be in the next Skript update.enhancementFeature request, an issue about something that could be improved, or a PR improving something.priority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions