diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..63ffbaa
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,41 @@
+
+ 4.0.0
+ EconomyLite
+ EconomyLite
+ 0.0.1-SNAPSHOT
+
+ src
+
+
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.8
+
+
+
+
+
+
+ sponge-maven-repo
+ Sponge maven repo
+ http://repo.spongepowered.org/maven
+
+ true
+
+
+ true
+
+
+
+
+
+
+ org.spongepowered
+ spongeapi
+ 2.0
+ provided
+
+
+
\ No newline at end of file
diff --git a/src/me/Flibio/EconomyLite/BalanceCommand.java b/src/me/Flibio/EconomyLite/BalanceCommand.java
new file mode 100644
index 0000000..fce8382
--- /dev/null
+++ b/src/me/Flibio/EconomyLite/BalanceCommand.java
@@ -0,0 +1,87 @@
+package me.Flibio.EconomyLite;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.slf4j.Logger;
+import org.spongepowered.api.entity.player.Player;
+import org.spongepowered.api.text.Text;
+import org.spongepowered.api.text.Texts;
+import org.spongepowered.api.text.format.TextColors;
+import org.spongepowered.api.util.command.CommandCallable;
+import org.spongepowered.api.util.command.CommandException;
+import org.spongepowered.api.util.command.CommandResult;
+import org.spongepowered.api.util.command.CommandSource;
+
+import com.google.common.base.Optional;
+
+public class BalanceCommand implements CommandCallable {
+
+ private DataEditor dataEditor;
+
+ public BalanceCommand(Logger log){
+ dataEditor = new DataEditor(log);
+ }
+
+ @Override
+ public Optional getHelp(CommandSource source) {
+ return Optional.of(Texts.builder("Usage: /balance").build());
+ }
+
+ @Override
+ public Optional getShortDescription(CommandSource source) {
+ return Optional.of(Texts.builder("Check your EconomyLite balance").build());
+ }
+
+ @Override
+ public List getSuggestions(CommandSource source, String args)
+ throws CommandException {
+ return Arrays.asList("/balance");
+ }
+
+ @Override
+ public Text getUsage(CommandSource source) {
+ return Texts.builder("/balance").build();
+ }
+
+ @Override
+ public Optional process(CommandSource source, String arg_string)
+ throws CommandException {
+ if(!(source instanceof Player)){
+ source.sendMessage(Texts.builder("Error: You must a player to use /balance").color(TextColors.RED).build());
+ return Optional.of(CommandResult.builder().successCount(0).build());
+ }
+
+ Player player = (Player) source;
+
+ String name = player.getName();
+
+ String[] args = arg_string.split(" ");
+
+ if(!args[0].isEmpty()){
+ player.sendMessage(Texts.builder("Usage: /balance").color(TextColors.RED).build());
+ return Optional.of(CommandResult.builder().successCount(0).build());
+ }
+
+ if(!dataEditor.playerExists(name)){
+ player.sendMessage(Texts.builder("Error: Player not found").color(TextColors.RED).build());
+ return Optional.of(CommandResult.builder().successCount(0).build());
+ }
+
+ player.sendMessage(Texts.builder("Your").color(TextColors.YELLOW).append(
+ Texts.builder(" EconomyLite ").color(TextColors.GREEN).build()
+ ).append(
+ Texts.builder("balance: ").color(TextColors.YELLOW).build()
+ ).append(
+ Texts.builder(""+dataEditor.getBalance(name)).color(TextColors.DARK_GREEN).build()
+ ).build());
+
+ return Optional.of(CommandResult.success());
+ }
+
+ @Override
+ public boolean testPermission(CommandSource source) {
+ return true;
+ }
+
+}
diff --git a/src/me/Flibio/EconomyLite/DataEditor.java b/src/me/Flibio/EconomyLite/DataEditor.java
new file mode 100644
index 0000000..27a90a9
--- /dev/null
+++ b/src/me/Flibio/EconomyLite/DataEditor.java
@@ -0,0 +1,116 @@
+package me.Flibio.EconomyLite;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import ninja.leaping.configurate.ConfigurationNode;
+import ninja.leaping.configurate.hocon.HoconConfigurationLoader;
+import ninja.leaping.configurate.loader.ConfigurationLoader;
+
+import org.slf4j.Logger;
+
+public class DataEditor {
+
+ private Logger logger;
+
+ public DataEditor(Logger log){
+ this.logger = log;
+ }
+
+ protected boolean setBalance(String name, int balance) {
+ ConfigurationLoader> manager = HoconConfigurationLoader.builder().setFile(new File("EconomyLite/data.conf")).build();
+ ConfigurationNode root;
+ try {
+ root = manager.load();
+ } catch (IOException e) {
+ logger.error("Error loading data file!");
+ logger.error(e.getMessage());
+ return false;
+ }
+
+ if(playerExists(name)){
+ Map