implmenetation

This commit is contained in:
Super_ 2020-10-31 00:58:12 -04:00
parent b51df4cc6b
commit ccab0cf83c
15 changed files with 31 additions and 20 deletions

View File

@ -4,7 +4,7 @@ import lombok.Getter;
import lombok.Setter;
import me.totalfreedom.plex.cache.MongoPlayerData;
import me.totalfreedom.plex.cache.SQLPlayerData;
import me.totalfreedom.plex.config.MainConfig;
import me.totalfreedom.plex.command.MainConfig;
import me.totalfreedom.plex.listener.ChatListener;
import me.totalfreedom.plex.listener.PlayerListener;
import me.totalfreedom.plex.rank.RankManager;
@ -14,7 +14,7 @@ import me.totalfreedom.plex.storage.SQLConnection;
import me.totalfreedom.plex.storage.StorageType;
import me.totalfreedom.plex.util.PlexLog;
import me.totalfreedom.plex.util.PlexUtils;
import me.totalfreedom.plex.world.Flatlands;
import me.totalfreedom.plex.world.impl.Flatlands;
import org.bukkit.World;
import org.bukkit.plugin.java.JavaPlugin;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.command.impl;
package me.totalfreedom.plex.command;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.command.impl;
package me.totalfreedom.plex.command;
import me.totalfreedom.plex.rank.enums.Rank;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.command.impl;
package me.totalfreedom.plex.command;
import lombok.Getter;
import me.totalfreedom.plex.player.PlexPlayer;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.config;
package me.totalfreedom.plex.command;
import java.io.File;
import me.totalfreedom.plex.Plex;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.command.impl;
package me.totalfreedom.plex.command;
import me.totalfreedom.plex.PlexBase;
import me.totalfreedom.plex.rank.enums.Rank;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.command.impl;
package me.totalfreedom.plex.command;
public enum RequiredCommandSource
{

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import org.bukkit.World;
import org.bukkit.generator.BlockPopulator;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import org.bukkit.World;
import org.bukkit.WorldCreator;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import org.bukkit.World;
import org.bukkit.generator.BlockPopulator;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import org.bukkit.World;
import org.bukkit.generator.BlockPopulator;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import org.bukkit.World;
import org.bukkit.generator.BlockPopulator;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.plex.world.impl;
package me.totalfreedom.plex.world;
import lombok.Getter;

View File

@ -1,12 +1,14 @@
package me.totalfreedom.plex.world;
package me.totalfreedom.plex.world.impl;
import me.totalfreedom.plex.Plex;
import me.totalfreedom.plex.world.impl.CustomWorld;
import me.totalfreedom.plex.world.impl.FlatChunkGenerator;
import org.bukkit.ChatColor;
import me.totalfreedom.plex.world.CustomWorld;
import me.totalfreedom.plex.world.FlatChunkGenerator;
import org.bukkit.Chunk;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.block.Sign;
import org.bukkit.generator.BlockPopulator;
import java.util.Random;
@ -23,7 +25,16 @@ public class Flatlands extends CustomWorld
@Override
public World generate()
{
return super.generate();
World world = super.generate();
Block block = world.getBlockAt(0, 51, 0);
block.setType(Material.OAK_SIGN);
BlockState state = block.getState();
if (state instanceof Sign)
{
Sign sign = (Sign) state;
}
return world;
}
private static class FlatlandsChunkGenerator extends FlatChunkGenerator