Merge pull request #15 from efekurbann/master

Fixed: players can not teleport to offline member's island
This commit is contained in:
GKasparov 2022-07-14 09:06:39 +03:00 committed by GitHub
commit cc6fd41cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 73 additions and 1 deletions

72
README.md Normal file
View File

@ -0,0 +1,72 @@
<p align="center">
<img alt="FabledSkyblock"
src="https://proxy.songoda.com/200/https://cdn2.songoda.com/products/fabledskyblock/iVa2K5aURiwKfwYkNZUkJ7UH0SGkHwz3JnBGVeBX.png">
</p>
<h1 align="center">FabledSkyblock</h1>
<p align="center">
<b>
Bring your servers SkyBlock experience to the next level with the ability to fine-tune
island settings, create custom islands, view leaderboards, and much more.
</b>
</p>
<p align="center">
<a href="https://discord.gg/songoda">
<img alt="Discord" src="https://img.shields.io/discord/293212540723396608?color=7289DA&label=Discord&logo=discord&logoColor=7289DA">
</a>
<a href="https://www.patreon.com/join/songoda">
<img alt="Patreon" src="https://img.shields.io/badge/-Support_on_Patreon-F96854.svg?logo=patreon&style=flat&logoColor=white">
</a>
<br>
<img alt="Latest" src="https://img.shields.io/badge/-ver_2.3.11-4078C0.svg?logo=github&style=flat&logoColor=white&color=blue&label=Latest&labelColor=black">
<a href="https://app.codacy.com/gh/songoda/FabledSkyblock/dashboard">
<img alt="quality" src="https://img.shields.io/codacy/grade/489f0babdfef4739a10a0859f2ae0f24">
</a>
<img alt="Last Updated" src="https://img.shields.io/github/last-commit/songoda/FabledSkyblock">
<br>
<a href="https://bstats.org/plugin/bukkit/FabledSkyblock/4544">
<img alt="Servers" src="https://img.shields.io/bstats/servers/4544">
</a>
<img alt="Maintained" src="https://img.shields.io/maintenance/yes/2020">
</p>
## Table of Contents
* [Introduction](#introduction)
* [Marketplace](#marketplace)
* [Documentation](#documentation)
* [Support](#support)
* [Suggestions](#suggestions)
## Introduction
FabledSkyblock is a powerful all in one skyblock plugin that allows you to create the perfect skyblock experience
tailored to your server for players to enjoy.
The plugin features numerous GUIs that allow you to customize the plugin in-game, and allows players to manage their islands.
Create and set up new starter island options in-game, using the structure tool and island template manager.
Manage the default permissions of visitors and island members through the island admin settings GUI,
allow island owners to manage what visitors, island members and island operators can do
on their islands through the island settings GUI,
and you are able to limit the settings that island owners would have access to through permissions.
Manage generators and island upgrades through the island admin GUIs
All in all, this plugin is the perfect skyblock plugin to create a unique experience for your server,
and its extensive list of permissions gives you full control over what players are able to access.
## Marketplace
You can visit [our marketplace](https://songoda.com/marketplace/product/fabledskyblock-the-ultimate-skyblock-plugin.17)
to download FabledSkyblock as well as take a look at many other fantastic plugins which are sure to catch your eye.
## Documentation
You can find all the information about FabledSkyblock, including dependencies,
commands, permissions and incompatible plugins on [our wiki](https://wiki.songoda.com/Fabled_Skyblock).
Feel free to also contribute to the wiki as a way to help others in the community with using the plugin.
## Support
If you encounter any issues while using the plugin,
feel free to create a ticket on [our support desk](https://support.songoda.com).
## Suggestions
For suggestions about features you think should be added to the plugin to increase its functionality,
feel free to create a thread over on [our feedback site](https://feedback.songoda.com).

View File

@ -1304,7 +1304,7 @@ public class IslandManager {
OfflinePlayer offlinePlayerData = new OfflinePlayer(offlinePlayer.getUniqueId());
loadIsland(offlinePlayer);
if (offlinePlayerData.getOwner() != null && islandStorage.containsKey(offlinePlayer.getUniqueId())) {
if (offlinePlayerData.getOwner() != null && islandStorage.containsKey(offlinePlayerData.getOwner())) {
return islandStorage.get(offlinePlayerData.getOwner());
}
}