mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
implmenetation
This commit is contained in:
parent
b51df4cc6b
commit
ccab0cf83c
@ -4,7 +4,7 @@ import lombok.Getter;
|
|||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import me.totalfreedom.plex.cache.MongoPlayerData;
|
import me.totalfreedom.plex.cache.MongoPlayerData;
|
||||||
import me.totalfreedom.plex.cache.SQLPlayerData;
|
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.ChatListener;
|
||||||
import me.totalfreedom.plex.listener.PlayerListener;
|
import me.totalfreedom.plex.listener.PlayerListener;
|
||||||
import me.totalfreedom.plex.rank.RankManager;
|
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.storage.StorageType;
|
||||||
import me.totalfreedom.plex.util.PlexLog;
|
import me.totalfreedom.plex.util.PlexLog;
|
||||||
import me.totalfreedom.plex.util.PlexUtils;
|
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.World;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.command.impl;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.command.impl;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
import me.totalfreedom.plex.rank.enums.Rank;
|
import me.totalfreedom.plex.rank.enums.Rank;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.command.impl;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import me.totalfreedom.plex.player.PlexPlayer;
|
import me.totalfreedom.plex.player.PlexPlayer;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.config;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import me.totalfreedom.plex.Plex;
|
import me.totalfreedom.plex.Plex;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.command.impl;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
import me.totalfreedom.plex.PlexBase;
|
import me.totalfreedom.plex.PlexBase;
|
||||||
import me.totalfreedom.plex.rank.enums.Rank;
|
import me.totalfreedom.plex.rank.enums.Rank;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.command.impl;
|
package me.totalfreedom.plex.command;
|
||||||
|
|
||||||
public enum RequiredCommandSource
|
public enum RequiredCommandSource
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.generator.BlockPopulator;
|
import org.bukkit.generator.BlockPopulator;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.WorldCreator;
|
import org.bukkit.WorldCreator;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.generator.BlockPopulator;
|
import org.bukkit.generator.BlockPopulator;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.generator.BlockPopulator;
|
import org.bukkit.generator.BlockPopulator;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.generator.BlockPopulator;
|
import org.bukkit.generator.BlockPopulator;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.plex.world.impl;
|
package me.totalfreedom.plex.world;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,12 +1,14 @@
|
|||||||
package me.totalfreedom.plex.world;
|
package me.totalfreedom.plex.world.impl;
|
||||||
|
|
||||||
import me.totalfreedom.plex.Plex;
|
import me.totalfreedom.plex.Plex;
|
||||||
import me.totalfreedom.plex.world.impl.CustomWorld;
|
import me.totalfreedom.plex.world.CustomWorld;
|
||||||
import me.totalfreedom.plex.world.impl.FlatChunkGenerator;
|
import me.totalfreedom.plex.world.FlatChunkGenerator;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
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 org.bukkit.generator.BlockPopulator;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
@ -23,7 +25,16 @@ public class Flatlands extends CustomWorld
|
|||||||
@Override
|
@Override
|
||||||
public World generate()
|
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
|
private static class FlatlandsChunkGenerator extends FlatChunkGenerator
|
Loading…
Reference in New Issue
Block a user