mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-28 17:38:01 +01:00
Add missing injection points
This commit is contained in:
parent
916675fb08
commit
5cdb3f4fd5
@ -26,6 +26,7 @@
|
|||||||
package com.plotsquared.bukkit;
|
package com.plotsquared.bukkit;
|
||||||
|
|
||||||
import com.google.inject.Guice;
|
import com.google.inject.Guice;
|
||||||
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
import com.google.inject.Key;
|
import com.google.inject.Key;
|
||||||
import com.google.inject.Stage;
|
import com.google.inject.Stage;
|
||||||
@ -176,16 +177,16 @@ import static com.plotsquared.core.util.ReflectionUtils.getRefClass;
|
|||||||
|
|
||||||
@Getter private Injector injector;
|
@Getter private Injector injector;
|
||||||
|
|
||||||
private PlotAreaManager plotAreaManager;
|
@Inject private PlotAreaManager plotAreaManager;
|
||||||
private EventDispatcher eventDispatcher;
|
@Inject private EventDispatcher eventDispatcher;
|
||||||
private PlotListener plotListener;
|
@Inject private PlotListener plotListener;
|
||||||
@WorldConfig private YamlConfiguration worldConfiguration;
|
@Inject @WorldConfig private YamlConfiguration worldConfiguration;
|
||||||
@WorldFile private File worldfile;
|
@Inject @WorldFile private File worldfile;
|
||||||
private BukkitPlayerManager playerManager;
|
@Inject private BukkitPlayerManager playerManager;
|
||||||
private BackupManager backupManager;
|
@Inject private BackupManager backupManager;
|
||||||
@ImpromptuPipeline private UUIDPipeline impromptuPipeline;
|
@Inject @ImpromptuPipeline private UUIDPipeline impromptuPipeline;
|
||||||
@BackgroundPipeline private UUIDPipeline backgroundPipeline;
|
@Inject @BackgroundPipeline private UUIDPipeline backgroundPipeline;
|
||||||
private PlatformWorldManager<World> worldManager;
|
@Inject private PlatformWorldManager<World> worldManager;
|
||||||
|
|
||||||
@Override public int[] getServerVersion() {
|
@Override public int[] getServerVersion() {
|
||||||
if (this.version == null) {
|
if (this.version == null) {
|
||||||
@ -308,7 +309,7 @@ import static com.plotsquared.core.util.ReflectionUtils.getRefClass;
|
|||||||
|
|
||||||
if (Settings.Enabled_Components.COMPONENT_PRESETS) {
|
if (Settings.Enabled_Components.COMPONENT_PRESETS) {
|
||||||
try {
|
try {
|
||||||
new ComponentPresetManager();
|
getInjector().getInstance(ComponentPresetManager.class);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
PlotSquared.log(Captions.PREFIX + "Failed to initialize the preset system");
|
PlotSquared.log(Captions.PREFIX + "Failed to initialize the preset system");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -27,6 +27,7 @@ package com.plotsquared.core.plot;
|
|||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.Sets;
|
||||||
|
import com.google.inject.Inject;
|
||||||
import com.plotsquared.core.PlotSquared;
|
import com.plotsquared.core.PlotSquared;
|
||||||
import com.plotsquared.core.configuration.Captions;
|
import com.plotsquared.core.configuration.Captions;
|
||||||
import com.plotsquared.core.configuration.ConfigurationUtil;
|
import com.plotsquared.core.configuration.ConfigurationUtil;
|
||||||
@ -128,13 +129,13 @@ public class Plot {
|
|||||||
@NotNull private final PlotId id;
|
@NotNull private final PlotId id;
|
||||||
|
|
||||||
// These will be injected
|
// These will be injected
|
||||||
private EventDispatcher eventDispatcher;
|
@Inject private EventDispatcher eventDispatcher;
|
||||||
private PlotListener plotListener;
|
@Inject private PlotListener plotListener;
|
||||||
private RegionManager regionManager;
|
@Inject private RegionManager regionManager;
|
||||||
private GlobalBlockQueue blockQueue;
|
@Inject private GlobalBlockQueue blockQueue;
|
||||||
private WorldUtil worldUtil;
|
@Inject private WorldUtil worldUtil;
|
||||||
private SchematicHandler schematicHandler;
|
@Inject private SchematicHandler schematicHandler;
|
||||||
@ImpromptuPipeline private UUIDPipeline impromptuPipeline;
|
@Inject @ImpromptuPipeline private UUIDPipeline impromptuPipeline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plot flag container
|
* Plot flag container
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.plotsquared.core.queue;
|
package com.plotsquared.core.queue;
|
||||||
|
|
||||||
|
import com.google.inject.Inject;
|
||||||
import com.plotsquared.core.PlotSquared;
|
import com.plotsquared.core.PlotSquared;
|
||||||
import com.plotsquared.core.location.Location;
|
import com.plotsquared.core.location.Location;
|
||||||
import com.plotsquared.core.player.PlotPlayer;
|
import com.plotsquared.core.player.PlotPlayer;
|
||||||
@ -48,9 +49,9 @@ public abstract class LocalBlockQueue {
|
|||||||
@Getter @Setter private boolean forceSync = false;
|
@Getter @Setter private boolean forceSync = false;
|
||||||
@Getter @Setter @Nullable private Object chunkObject;
|
@Getter @Setter @Nullable private Object chunkObject;
|
||||||
|
|
||||||
private SchematicHandler schematicHandler;
|
@Inject private SchematicHandler schematicHandler;
|
||||||
private WorldUtil worldUtil;
|
@Inject private WorldUtil worldUtil;
|
||||||
private GlobalBlockQueue blockQueue;
|
@Inject private GlobalBlockQueue blockQueue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Needed for compatibility with FAWE.
|
* Needed for compatibility with FAWE.
|
||||||
|
Loading…
Reference in New Issue
Block a user