mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 13:03:06 +00:00
worldborder + offline player conversion
This commit is contained in:
parent
3f92b43ccf
commit
1837a9a247
6 changed files with 29 additions and 12 deletions
|
@ -17,6 +17,7 @@ import com.intellectualcrafters.plot.config.C;
|
|||
import com.intellectualcrafters.plot.config.Settings;
|
||||
import com.intellectualcrafters.plot.object.StringWrapper;
|
||||
import com.intellectualcrafters.plot.uuid.DefaultUUIDWrapper;
|
||||
import com.intellectualcrafters.plot.uuid.OfflineUUIDWrapper;
|
||||
import com.intellectualcrafters.plot.uuid.UUIDWrapper;
|
||||
|
||||
public class UUIDHandler {
|
||||
|
@ -203,8 +204,8 @@ public class UUIDHandler {
|
|||
return uuid;
|
||||
}
|
||||
|
||||
// Read from disk
|
||||
if (Settings.UUID_FROM_DISK) {
|
||||
// Read from disk OR convert directly to offline UUID
|
||||
if (Settings.UUID_FROM_DISK || uuidWrapper instanceof OfflineUUIDWrapper) {
|
||||
OfflinePlayer op = Bukkit.getOfflinePlayer(name);
|
||||
uuid = UUIDHandler.uuidWrapper.getUUID(op);
|
||||
add(new StringWrapper(name), uuid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue