mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
online mode
This commit is contained in:
parent
760041607e
commit
e3f772050e
@ -23,12 +23,14 @@ package com.intellectualcrafters.plot.database;
|
|||||||
|
|
||||||
import com.google.common.base.Charsets;
|
import com.google.common.base.Charsets;
|
||||||
import com.intellectualcrafters.plot.PlotMain;
|
import com.intellectualcrafters.plot.PlotMain;
|
||||||
|
import com.intellectualcrafters.plot.config.Settings;
|
||||||
import com.intellectualcrafters.plot.generator.WorldGenerator;
|
import com.intellectualcrafters.plot.generator.WorldGenerator;
|
||||||
import com.intellectualcrafters.plot.object.PlotHomePosition;
|
import com.intellectualcrafters.plot.object.PlotHomePosition;
|
||||||
import com.intellectualcrafters.plot.object.PlotId;
|
import com.intellectualcrafters.plot.object.PlotId;
|
||||||
import com.worldcretornica.plotme.PlayerList;
|
import com.worldcretornica.plotme.PlayerList;
|
||||||
import com.worldcretornica.plotme.Plot;
|
import com.worldcretornica.plotme.Plot;
|
||||||
import com.worldcretornica.plotme.PlotManager;
|
import com.worldcretornica.plotme.PlotManager;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.WorldCreator;
|
import org.bukkit.WorldCreator;
|
||||||
@ -77,7 +79,7 @@ public class PlotMeConverter {
|
|||||||
new ArrayList<>();
|
new ArrayList<>();
|
||||||
// Online Mode
|
// Online Mode
|
||||||
final boolean online =
|
final boolean online =
|
||||||
Bukkit.getServer().getOnlineMode();
|
Bukkit.getServer().getOnlineMode() && Settings.OFFLINE_MODE;
|
||||||
// PlotMe Plugin
|
// PlotMe Plugin
|
||||||
final Plugin plotMePlugin =
|
final Plugin plotMePlugin =
|
||||||
Bukkit.getPluginManager().getPlugin("PlotMe");
|
Bukkit.getPluginManager().getPlugin("PlotMe");
|
||||||
|
@ -70,7 +70,7 @@ public class UUIDHandler {
|
|||||||
*
|
*
|
||||||
* @see org.bukkit.Server#getOnlineMode()
|
* @see org.bukkit.Server#getOnlineMode()
|
||||||
*/
|
*/
|
||||||
private final static boolean online = Bukkit.getServer().getOnlineMode();
|
private final static boolean online = Bukkit.getServer().getOnlineMode() && Settings.OFFLINE_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map containing names and UUIDs
|
* Map containing names and UUIDs
|
||||||
|
Loading…
Reference in New Issue
Block a user