Skip to content

Commit

Permalink
refactor: rename plugin platform to platform
Browse files Browse the repository at this point in the history
  • Loading branch information
CorneliusMa committed Aug 24, 2024
1 parent 3ee5e95 commit f178197
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SilkSpawners extends JavaPlugin {

private Logger log;

private PluginPlatform pluginPlatform;
private PluginPlatform platform;

private Bukkit bukkitHandler;

Expand All @@ -55,7 +55,7 @@ public void onEnable() {
log.info("Loading server platform");
PlatformLoader platformLoader = new PlatformLoader(this);
platformLoader.load();
pluginPlatform = platformLoader.getPluginPlatform();
platform = platformLoader.getPluginPlatform();

log.info("Loading Cross-Version support");
CrossVersionHandler versionHandler = new CrossVersionHandler(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected void onCall(PlayerInteractEvent e) {
}
editedSpawners.add(block);

this.plugin.getPluginPlatform().runTaskLater(blockLocation, () -> {
this.plugin.getPlatform().runTaskLater(blockLocation, () -> {
Spawner newSpawner = new Spawner(plugin, block.getWorld().getBlockAt(blockLocation));

if(!e.getPlayer().hasPermission("silkspawners.change." + newSpawner.serializedEntityType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void setSpawnerBlockType(Block block, List<Block> editedList) {
editedList.remove(block);
return;
}
this.plugin.getPluginPlatform().runTaskLater(block.getLocation(), () -> {
this.plugin.getPlatform().runTaskLater(block.getLocation(), () -> {
BlockState blockState = block.getState();
if(!(blockState instanceof CreatureSpawner)) return;
CreatureSpawner creatureSpawner = (CreatureSpawner) blockState;
Expand Down

0 comments on commit f178197

Please sign in to comment.