Release as 0.1

Updated plugin.yml
Fixed folder generation on startup
This commit is contained in:
SydMontague 2013-12-30 15:50:51 +01:00
parent 6adacd9a41
commit aa58da0f85
3 changed files with 10 additions and 5 deletions

View File

@ -31,15 +31,15 @@ public class ImageMapCommand implements TabExecutor
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
if (!sender.hasPermission("imagemaps.command") || !(sender instanceof Player))
return false;
if (!sender.hasPermission("imagemaps.use") || !(sender instanceof Player))
return true;
if (args.length < 1)
return false;
plugin.startPlacing((Player) sender, args[0]);
sender.sendMessage("started placing");
sender.sendMessage("Started placing of " + args[0] + ". Rightclick on a block, that shall be the upper left conor.");
return true;
}

View File

@ -38,7 +38,7 @@ public class ImageMaps extends JavaPlugin implements Listener
public void onEnable()
{
if (!new File(getDataFolder(), "images").exists())
new File(getDataFolder(), "images").mkdir();
new File(getDataFolder(), "images").mkdirs();
loadMaps();
getCommand("imagemap").setExecutor(new ImageMapCommand(this));

View File

@ -4,4 +4,9 @@ version: ${project.version}
name: ImageMaps
commands:
imagemap:
usage: "/imagemap <file> - then rightlick on a block"
usage: "/imagemap <file> - then rightlick on a block"
permission: imagemaps.use
permissions:
imagemaps.use:
default: op