diff --git a/README.md b/README.md index 428249c..b7de3c6 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ Usage Sets spawn location. +/bed + + Teleports player to their bed + Permissions ----------- @@ -31,6 +35,12 @@ Permissions works if opped +/bed + + easyspawn.bed + + by default this works for non-opped players + Source code be found [here](https://github.com/jimmy1248/EasySpawn) on github. \ No newline at end of file diff --git a/src/net/jimmy1248/easyspawn/EasySpawn.java b/src/net/jimmy1248/easyspawn/EasySpawn.java index 6449393..6901613 100644 --- a/src/net/jimmy1248/easyspawn/EasySpawn.java +++ b/src/net/jimmy1248/easyspawn/EasySpawn.java @@ -6,13 +6,7 @@ import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; public class EasySpawn extends JavaPlugin{ - @Override - public void onEnable() { - getCommand("spawn").setExecutor(this); - getCommand("setspawn").setExecutor(this); - getCommand("bed").setExecutor(this); - } - + @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {