public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

		if (!(sender instanceof Player)) {
			sender.sendMessage(ChatColor.RED + "you must be logged on to use these commands");
			return false;
		}
		else if (command.getName().equalsIgnoreCase("inventoryBlock") && sender.hasPermission("spoutBlock.inventoryBlock")) {
			Player player = (Player) sender;
			testBlock = new testblock(plugin);
			player.getInventory().addItem(new SpoutItemStack(testBlock, 1));
			return true;
		}
		else if (command.getName().equalsIgnoreCase("worldBlock") && sender.hasPermission("spoutBlock.worldBlock")) {
			testBlock = new block(plugin);
			Player player = (Player) sender;
			Location loc = player.getLocation();
			Block b = player.getWorld().getBlockAt(loc);
			SpoutManager.getMaterialManager().overrideBlock(b, testBlock);
			SpoutBlock sb = (SpoutBlock) b;
			sb.setCustomBlock(testBlock);
			return true;
		}
		
		else if (command.getName().equalsIgnoreCase("message") && sender.hasPermission("spoutBlock.message") && args.length > 0) {
			this.plugin.getConfig().set("sample.message", Joiner.on(' ').join(args));
			return true;
		}
		else	return false;
	}